|
-
Oct 31st, 2001, 04:01 PM
#1
Thread Starter
Lively Member
Acrobat
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.
-
Nov 1st, 2001, 12:37 AM
#2
PowerPoster
Well
Which program (Acrobat) are you trying to automate?
Remaining quiet down here !!!
BRAD HAS GIVEN ME THE ULTIMATIVE. I have chosen to stay....
-
Nov 1st, 2001, 08:12 AM
#3
Thread Starter
Lively Member
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?
-
Nov 1st, 2001, 09:14 AM
#4
PowerPoster
Well
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.
Remaining quiet down here !!!
BRAD HAS GIVEN ME THE ULTIMATIVE. I have chosen to stay....
-
Nov 1st, 2001, 10:03 AM
#5
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?
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
-
Nov 1st, 2001, 12:08 PM
#6
Thread Starter
Lively Member
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.
2) Purchase a third paty control
Can you recommand any of them ? Thanks.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|