[iText-questions] [SPAM] Re: Merging PDF documents with signature

2014-02-06 Thread mkl
Gilberto,

roquegil wrote
 Then removing the signature can solve my problem if the appearance of the
 signature is Keeped.
 
 I'v juste tried to remove the signature from the reader

You misunderstood Bruno when he wrote

blowagie wrote
 flattening the signature appearance is indeed possible (if removing the
 signature isn't a problem)

He didn't intend that you explicitly removed the field (this obviously makes
the associated appearance disappear). Instead he intended that you flattened
the signature field; this operation integrates the field appearance into the
page content and only then removes the signature field.

roquegil wrote
 If you have some examples, it will be very helpfull.

As Bruno already wrote:

blowagie wrote
 Let us know through the proper channels if you require a code sample.
 [...]
 do you see the yellow warning preceding your questions? They warn you that
 you're not subscribed to the official mailing-list. See
 http://itextpdf.com/nabble for more info.

Regards,   Michael



--
View this message in context: 
http://itext-general.2136553.n4.nabble.com/Merging-PDF-documents-with-signature-tp4659704p4659715.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=121051231iu=/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


[iText-questions] [SPAM] Re: Merging PDF documents with signature

2014-02-06 Thread mkl
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=121051231iu=/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