One of the ideas of digital signatures is to check the document
integrity. If you are adding more information to the document it's no
surprise that the signature is corrupted. This can be avoided by adding
more information in append mode although you'll still get a warning that
the signature doesn't cover the entire doc.

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On 
> Behalf Of iText General
> Sent: Wednesday, June 08, 2005 11:50 AM
> To: [email protected]
> Subject: [iText-questions] PDFStamper corrupts the PDF Signature
> 
> Hello All,
> 
> I'm using PDFStamper for form filling but facing problem. Existing PDF
> signatures become corrupted after saving the PDF document.
> 
> But PDF signature becomes invalid in 'destination.pdf'.
> Can anyone through light on it that why it corrupts the 
> signature and how to
> resolve it?
> 
> I'm using the following code:
> //------------------------------------------------------------
>   public void save(String strSrcPDF, String strDestPDF) 
> throws Exception {
>     PdfReader obj_pdfReader = new PdfReader(strSrcPDF);
>     FileOutputStream obj_fos = new FileOutputStream(strDestPDF);
>     PdfStamper obj_pdfStamper = new PdfStamper(obj_pdfReader, 
> obj_fos);
>     AcroFields obj_acroFieldsStamper = obj_pdfStamper.getAcroFields();
> .....
> .....
> .....
>     obj_pdfStamper.close();
>     obj_fos.close();
>   }
> //------------------------------------------------------------
> 
> Regards,
> Faisal
> 
> 
> 
> 
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by: NEC IT Guy Games.  How far 
> can you shotput
> a projector? How fast can you ride your desk chair down the 
> office luge track?
> If you want to score the big prize, get to know the little guy.  
> Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
> _______________________________________________
> iText-questions mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/itext-questions
> 


-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r 
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to