Even Acrobat can't do it.

Best Regards,
Paulo Soares 

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On 
> Behalf Of Wahaj
> Sent: Monday, December 20, 2004 10:44 AM
> To: [EMAIL PROTECTED]
> Subject: [iText-questions] Signing a pdf document which is 
> originally encrypted
> 
> Hi All,
> 
> I am trying to sign a pdf document which is orginally 
> password encrypted
> with permission but getting following exception:
> 
>  PdfReader reader = new
> PdfReader("Supporting-Files/TestDocumentWhichIsSigned.pdf","te
> st".getBytes()
> );
> 
> com.lowagie.text.DocumentException: Append mode requires a 
> document without
> encryption.
> at com.lowagie.text.pdf.PdfStamperImp.<init>(PdfStamperImp.java:103)
> at com.lowagie.text.pdf.PdfStamper.<init>(PdfStamper.java:120)
> at 
> com.lowagie.text.pdf.PdfStamper.createSignature(PdfStamper.java:496)
> 
> on the line:
> 
>       PdfStamper stp = PdfStamper.createSignature(reader, 
> fout, '\0', null,
> true);
> 
> Also if I try to sign a pdf whose password for opening the 
> pdf is set, I get
> the above exception.
> 
> Regards,
> Wahaj
> 
> 
> 


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to