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

Resizing,moving a watermark stamp on a pdf(already stamped using iText

ranjanakhati
Registered: Sep 3 2008
Posts: 16

Hello Everyone,

I am stuck with a technical issue. We have a requirement where we are required to use iText to stamp an image on a pdf file. Once the pdf file is stamped and later down the technical workflow, the user should be able to move or resize the stamped image (that was stamped using iText on the pdf file) using Acrobat Professional/ Standard.

Is this possible?

Thanks,
R K

My Product Information:
Acrobat Standard 8.0, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
If the stamp is actually a "Stamp annotation" then it's no problem at all. Just click on the stamp, then grab on of the resize tabs.

However I suspect that iText is not applying a stamp per se, that in fact it's writing your stamp data into the page content. If this is the case then you're only option is to use the "touchup Object tool" on the "Advanced Editing" toolbar. It's one of the last tools on the toolbar.

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/]http://www.adobe.com/devnet/acrobat/[/url]

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script

ranjanakhati
Registered: Sep 3 2008
Posts: 16
Thanks Thomp for your imput.
Yes your assumption is right. We are using iText to paste stamp as an image in the page content. Do you know of any other java based API (other than iText), that we can use which wouldn't do apply the stamp in the page content?
Or do you know of any sample code for stamp annotation which I can try out to open the stamped PDF and resize the stamps.
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
To get rid of the Save message you can set the dirty flag to false

Place this code in the "DidPrint" event:

this.dirty = false;

if the user prints the file and then closes it there won't be a save warning. But if they just close it they'll get the save warning.

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/]http://www.adobe.com/devnet/acrobat/[/url]

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script

ranjanakhati
Registered: Sep 3 2008
Posts: 16
I tried with Stamp Annotation and that worked.
Thank you for helping me out.