Answered
Hi, all
I have a range of PNG files at hand, now, I wanna get these files merged into a single PDF file.
Is it possible to combine them to a single PDF document by using acrobat scripting?
These PNG files are arranged as follows,
----------------------------------------
docname_Page_001.png
docname_Page_002.png
docname_Page_003.png
...
docname_Page_125.png
----------------------------------------
Any assistance would be much appreciated.
Regards,
- gavin
Use the "app.openDoc()" function with the "bUseConv" option. You'll need to run this on every png file, then use the "doc.insertPages()" function to place them all in the same file.
There's lots of picky details to this process, you can find most of what you need in the Acrobat JavaScript Reference.
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.pdfscripting.com/public/34.cfm#JSIntro][b]The Console Window (Video tutorial)[/b][/url]
[url=http://www.acrobatusers.com/tutorials/2006/javascript_console][b]The Console Window(article)[/b][/url]
Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script