These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Automating PDF Creation With Acrobat 8

thespratty
Registered: Mar 11 2009
Posts: 3

Hi all.

I need to automate the conversion Word documents to .PDF files but would like to do so without opening Word. Does Acrobat 8 expose any interface that can be directly accessed from VB? The .PDF manual that comes with Acrobat 8 doesn't mention any form of automation so I realise I probably won't get the answer I want but I really need to know for sure.

Thanks in advance,

Tony.

My Product Information:
Acrobat Standard 8.0, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
You can do this a couple of ways. The easiest is to use a batch process, but this is only availible in Acrobat Professional.

The is an external programming interface for Acrobat, it's called the IAC (interapplication communication interface). And you can find documentation for it here:

http://www.adobe.com/devnet/acrobat/interapplication.php

Thom Parker
The source for PDF Scripting Info
[url=http://www.pdfScripting.com]pdfscripting.com[/url]

The Acrobat JavaScript Reference, Use it Early and Often
[url=http://www.adobe.com/devnet/acrobat/javascript.php]http://www.adobe.com/devnet/acrobat/javascript.php[/url]

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script

jazz2k8
Registered: Mar 15 2009
Posts: 15
How to implement batch processing in acrobat standard? i am a java guy.How to use the scripts?
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
the official "Batch Processing" is not a feature in Acrobat Standard. But you can create your own using the IAC, expliained in the link in my previous post.

Thom Parker
The source for PDF Scripting Info
[url=http://www.pdfScripting.com]pdfscripting.com[/url]

The Acrobat JavaScript Reference, Use it Early and Often
[url=http://www.adobe.com/devnet/acrobat/javascript.php]http://www.adobe.com/devnet/acrobat/javascript.php[/url]

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script

thespratty
Registered: Mar 11 2009
Posts: 3
Hi again, Thomp.

I've been through the SDK and the samples but can't seem to get the process working for Word documents. I've looked at the AdobePDFSilentVB sample app that came with the SDK and created the registry key it used but when printing from Word, I still get the Save PDF As dialog box displayed. Is there a problem with Word 2003 being automated to create PDFs?

Thanks again,

Tony.

PS: Sorry I've been a long time in replying but my contract got suspended for a while.
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
The "app.openDoc()" function in Acrobat JavaScript does conversions to PDF. And, the Acrobat JavaScript functions can be accessed from an IAC program. Use the PDDoc.getJSObject() function to get access to the JS environment. I can't guaruntee that this will work, but it's a good approach to try.

If it doesn't work, then you may want to look into 3rd party products. There are several free PDF converters that could be automated from VB. You should also look into Distiller. It has options for automating conversions. I didn't think of this one before becuase I don't use distiller, so I'm not quite sure how far you can go with it.

Thom Parker
The source for PDF Scripting Info
[url=http://www.pdfScripting.com]pdfscripting.com[/url]

The Acrobat JavaScript Reference, Use it Early and Often
[url=http://www.adobe.com/devnet/acrobat/javascript.php]http://www.adobe.com/devnet/acrobat/javascript.php[/url]

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script

kingqwerty
Registered: May 11 2009
Posts: 2
Is there any way to automate the conversion of web content into PDF format?

John
universitiesandcolleges.org
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Yes, Take a look at the "doc.openDoc()" function in the Acrobat JavaScript Reference. There are several conversion attributes, although I'm not sure about web pages.

Thom Parker
The source for PDF Scripting Info
[url=http://www.pdfScripting.com]pdfscripting.com[/url]

The Acrobat JavaScript Reference, Use it Early and Often
[url=http://www.adobe.com/devnet/acrobat/javascript.php]http://www.adobe.com/devnet/acrobat/javascript.php[/url]

Then most important JavaScript Development tool in Acrobat
[url=http://www.acrobatusers.com/tutorials/2006/javascript_console][b]The Console Window[/b][/url]

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script