Don't ask me, ask Acrobat. It's an Acrobat limitation, not iText's. 

> -----Original Message-----
> From: Wahaj [mailto:[EMAIL PROTECTED] 
> Sent: Monday, December 20, 2004 3:20 PM
> To: Paulo Soares; [EMAIL PROTECTED]
> Subject: Re: [iText-questions] Signing a pdf document which 
> is originally encrypted
> 
> Ok then what is the purpose of the provided password (whether 
> owner's or
> user's) in the PDFReader constructor if we can't sign a pdf document.
> 
> Regards,
> Wahaj
> ----- Original Message ----- 
> From: "Paulo Soares" <[EMAIL PROTECTED]>
> To: "Wahaj" <[EMAIL PROTECTED]>;
> <[EMAIL PROTECTED]>
> Sent: Monday, December 20, 2004 5:38 PM
> Subject: RE: [iText-questions] Signing a pdf document which 
> is originally
> encrypted
> 
> 
> > 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