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

Scripting or macro for batch watermark of PDFs

jmunch
Registered: Sep 5 2007
Posts: 4
Answered

Hi,
I am interested in automating the creation of watermarked PDFs. I have 30 PDF files that I want to watermark with a company name and about 150 company names. The watermarked files would be stored in a folder per company. I see that Acrobat 9 can support the watermarking of multiple PDFs which solves part of the problem (I think I can watermark all 30 for a single company at one time), but still requires the task to be done 150 times. Is there a scripting, macro capability that would allow me to read the information from a text file and process the PDFs?

thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Yes, there is an "addWatermarkFromText()" fucntion in Acrobat JavaScript. So the actual watermark text can be scripted for a "Run a JavaScript" Batch Command. However, the problem is getting the company name to incorporate in the text. Reading a text file is possible, but not easy or practical for batch processing. If it's in the file path then it can be extracted, and this is probably your best option. If all the company folders are in a single parent folder then you can run the batch on the parent folder to get them all in one shot.

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