Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Add date-timestamp to PDF

807603Jan 25 2008 — edited Jan 31 2008
Hi,

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.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 28 2008
Added on Jan 25 2008
1 comment
721 views