What you're tying is possible because PdfReader(string file, byte[] ownerPassword) will remove the encryption and will allow the PDF to be signed. I've no idea where the error comes from as you don't show any stack strace.
Paulo ----- Original Message ----- From: "David Saier" <[EMAIL PROTECTED]> To: <[email protected]> Sent: Tuesday, July 11, 2006 9:05 PM Subject: [iText-questions] Adding a signature to an encrypted pdf document. Hello, I have been trying to use iText to create a signature in an encrypted pdf document. Basically I have a pdf document which is password encrypted with a known owner password, and I want to add a signature to it. When I try it it gives me an "Object reference set to null" error, making me believe the problem is in accessing the document. I have gotten my code to work if the pdf is not encrypted, however this is not an option for me, I have to have the document locked before I add a signature to it. Using the PdfReader(string file, byte[] ownerPassword) constructor for the PdfReader I pass into the PdfStamper.CreateSignature does not seem to work. Is what I am trying to do possible? Thanks, David --------------------------------- Yahoo! Music Unlimited - Access over 1 million songs.Try it free. -------------------------------------------------------------------------------- > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > -------------------------------------------------------------------------------- > _______________________________________________ > iText-questions mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/itext-questions > ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions
