Results 1 to 6 of 6

Thread: Acrobat

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jan 2001
    Posts
    115

    Cool 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.

  2. #2
    PowerPoster
    Join Date
    Aug 2000
    Location
    IN SILENCE
    Posts
    6,441

    Well

    Which program (Acrobat) are you trying to automate?
    Remaining quiet down here !!!

    BRAD HAS GIVEN ME THE ULTIMATIVE. I have chosen to stay....

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Jan 2001
    Posts
    115
    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?

  4. #4
    PowerPoster
    Join Date
    Aug 2000
    Location
    IN SILENCE
    Posts
    6,441

    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....

  5. #5
    pathfinder NotLKH's Avatar
    Join Date
    Apr 2001
    Posts
    2,397
    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

  6. #6

    Thread Starter
    Lively Member
    Join Date
    Jan 2001
    Posts
    115
    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
  •  



Click Here to Expand Forum to Full Width