Hi All,
Does Adobe Acrobat support automation object programming in VB like what Excel and word do? Like:
Set IM = CreateObject("Acrobat.Application")
If it does, where can i find the reference or sample code. Thanks.
Printable View
Hi All,
Does Adobe Acrobat support automation object programming in VB like what Excel and word do? Like:
Set IM = CreateObject("Acrobat.Application")
If it does, where can i find the reference or sample code. Thanks.
Which program (Acrobat) are you trying to automate?
i am trying to generate PDF file in the program, i.e., output text/picture into PDF format. Is that possible?Quote:
Which program (Acrobat) are you trying to automate?
2 options really :
1) Purchase Adobe 5.0, and set the printer in code (select ADOBE and it makes a PDF from the print)
2) Purchase a third paty control
Actaully 3 options - MORPHEUS might have Adobe 5.0.
;)
Acrobat SDK-Supports OLE from VB
The above brings you to Adobe SDK Downloads, where you'll find the SDK for acrobat. Basically, though, you need a fully functional
acrobat program already running on your machine. It would seem that you do, or else why convert to pdf?:D
But anyways, Converting a postscript print file to pdf is automatable with the Distiller API. However, you really don't need it if you have Distiller already on your machine. You can auto distill
a ps file in a couple of ways.
1) Distiller can be set up to have a hot folder, where if a ps file appears, it will automatically distill it.
2) To Programically distill without SDK, You first need .PS files associated with distiller. Then, :
a) Set your default postscript driver to print to a port that is set to be a default file. Note: This is different then having it set to Print To File. You don't get a nasty Popup asking for a final path. instead it just automatically prints to an individual default file, overwriting it if it already exists. See the attachment on how to set it up.
b) In your program, Using your Printer Object, print your images or whatever. When you are done printing, then use the ShellExecute API function to "Open" your new postscript file. It will, thru its extension association, be run thru distiller, and you will receive a .pdf file from your .ps file.
-Lou
Thank you all. That's very helpful. I have full version of acrobat runing on my machine. But i want to distribute the program to the machine which only has Acrobat reader installed.
Can you recommand any of them ? Thanks.Quote:
2) Purchase a third paty control