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

Flattening annotations (stamps) using iText

ranjanakhati
Registered: Sep 3 2008
Posts: 16

Can any one help us to find out a way to flatten stamps (so other users cannot move
the stamp) on a PDF .

Currently we are using itext PDFEncryptor class to do it. But this is making the pdf secure with a password to it. We dont want to make the pdf secure.

Can any one help us in finding out a way to flatten stamps without securing the PDF.

gkaiseril
Expert
Registered: Feb 23 2006
Posts: 4307
You can use Acrobat JavaScirpt 'flattenPages()'.

George Kaiser

ranjanakhati
Registered: Sep 3 2008
Posts: 16
Thank you for quick reply. Can you please point me to the javascript code and how to do it.
lkassuba
ExpertTeam
Registered: Jun 28 2007
Posts: 3636
Here is a link to a tutorial with more information:
http://acrobatusers.com/tutorials/how-do-i-customize-stamp

Lori Kassuba is an AUC Expert and Community Manager for AcrobatUsers.com.