I am trying to encrypt a pdf file using PdfStamper class. The pdf contains
filled signature fields.
After encrypting the pdf, the signature fields get corrupted. Can anyone
propose a solution for this. 
Here is the code I am using

public void encryptPdfDoc() throws IOException, DocumentException
{
        String src = "C://1.pdf";
        String dest = "C://temp.pdf";
        PdfReader reader = new PdfReader(src);
        PdfStamper stamper = new PdfStamper(reader, new
FileOutputStream(dest));
        stamper.setEncryption(null, null, PdfWriter.AllowPrinting,
PdfWriter.STRENGTH128BITS);
        stamper.close();
        reader.close();
}

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

------------------------------------------------------------------------------
Cloud Services Checklist: Pricing and Packaging Optimization
This white paper is intended to serve as a reference, checklist and point of 
discussion for anyone considering optimizing the pricing and packaging model 
of a cloud services business. Read Now!
http://www.accelacomm.com/jaw/sfnl/114/51491232/
_______________________________________________
iText-questions mailing list
[email protected]
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