0

I am writing a vb program and need to convert a file to pdf. I have not had luck trying to use the distiller/print drivers etc. As of now I am using a command line:

intTestVar = Shell("C:\Program Files\Adobe\Acrobat 6.0\Acrobat\Acrobat.exe " & strFileName)

This opens acrobat and converts the file to a pdf....now I just need it to save automatically without prompting...is there a command line switch that would allow me to save with the default name?

if anyone has links to acrobat command line pages would be great.

-B

3
Contributors
2
Replies
3
Views
13 Years
Discussion Span
Last Post by lucasd
0

I would use Distiller, so make sure that Distiller is installed.

What you will need is the proper switches as well as the input and output filenames as such.

acrodist [switches][inputFiles]

intTestVar = Shell("acrodist /O " & strOutPutFileName & " " & strInputFileName)

where /O = outputFileOrFolderPath

Here is a URL describing the proper parameters.

http://www.adobe.com/support/techdocs/11666.htm

Hope this helps.


Ray

I am writing a vb program and need to convert a file to pdf. I have not had luck trying to use the distiller/print drivers etc. As of now I am using a command line:

intTestVar = Shell("C:\Program Files\Adobe\Acrobat 6.0\Acrobat\Acrobat.exe " & strFileName)

This opens acrobat and converts the file to a pdf....now I just need it to save automatically without prompting...is there a command line switch that would allow me to save with the default name?

if anyone has links to acrobat command line pages would be great.

-B

0

Hi,

I have the same problem but distiller only accept ps file in input!!!


How can i give him other file (like doc, xls, jpeg,...)

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.