Including the following script in the Document Will Print / Document Action script-box will populate a text box named DatePrinted with the current date and time, and this will show up on the printed document. This is exactly what I need, but now I have 3000 documents that need this line of code and a DatePrinted text box added to each of them. How can this be done? Is some sort of Acrobat batch processing a viable option?
this.getField("DatePrinted").value = "Printed: " + util.printd("mmm d, yyyy h:mm tt",new Date());
signed – please help a chemist
Read this Article:
[url=http://www.acrobatusers.com/tutorials/2007/js_add_buttons_to_pdf/]http://www.acrobatusers.com/tutorials/2007/js_add_buttons_to_pdf/[/url]
You can find an example of exactly this functionality in the sample scripts provided with this 3rd party tool
[url=http://www.windjack.com/products/acrobuttons.php]http://www.windjack.com/products/acrobuttons.php[/url]
Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script