Add date-timestamp to PDF
807603Jan 25 2008 — edited Jan 31 2008Hi,
Is there a way I could add current date-timestamp to the PDF, when the PDF is opened or printed?
I read the iTEXT documentation and it seems its possible to add javascript to the PDF document using iTEXT and this javascript will get executed when the PDF is opened.
I was successful in adding the "this.print" javascript; however, I am still struggling to figure out how to add "this.addWaterMarkFromText" javascript. I know I can use the iText API to add watermarks, however, I want to use the Adobe Javascript instead. This exercise is just to figure out how to add javascript to PDF.
This would help me figure out how to use various Adobe javascript events such as "WillPrint" to dynamically add the timestamp just before the Print button is clicked.
Any help will be highly appreciated.
Thanks,
Shilpa.