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

Combing/layering files

kevinbridges
Registered: Mar 22 2007
Posts: 2

I am looking for a scripted way to combine a PDF file, some html text, and a .jpg logo file into a single PDF file for printing. Not sure if this will require plug-in's or 3rd party utilities, or if it can be done entirely in Acrobat.
 
Thanks.
 
Kevin Bridges

My Product Information:
Acrobat Standard 7.0.0, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
This can be done entirely in JavaScript.

The "app.openDoc()" function will convert both HTML and image files into PDF. If the HTML is on a server, use the "doc.getURL()" function to convert it. Once the files are converted to PDF, they can be merged using the "doc.insertPages()" function. To write an automation script you'll need to create a folder level script and place the main code into a trustedFunction. It'll need to be activated with a menu item or toolbar button. Take a look at [url="http://www.windjack.com/products/acrobuttons.php"]AcroButtons[/url], which is for creating toolbar buttons.

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