Gilberto,

roquegil wrote
> So can you send me some code example of duplicating signature appearance,
> in order to insert it in the PDF page, before deleting existing signature?

You don't need to explicitly delete the signature at all, flattening the
signature field removes that field as a side effect.

You flatten a PDF like this:

        PdfReader reader = new PdfReader(_SRC_);
        PdfStamper stamper = new PdfStamper(reader, _DEST_STREAM_);
        stamper.setFormFlattening(true);
        stamper.close();
        reader.close();

If you only want to flatten specific fields, use the partialFormFlattening
method:

        PdfReader reader = new PdfReader(_SRC_);
        PdfStamper stamper = new PdfStamper(reader, _DEST_STREAM_);
        stamper.setFormFlattening(true);
        stamper.partialFormFlattening(_FIELD_NAME_);
        stamper.close();
        reader.close();

Regards,   Michael



--
View this message in context: 
http://itext-general.2136553.n4.nabble.com/Merging-PDF-documents-with-signature-tp4659704p4659717.html
Sent from the iText - General mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Reply via email to