Hi

I have created a pdf document with a security policy that encrypts only
attachments. I then attached a file to the pdf. When I now try to open the
document with encrypted attachment using a PdfReader, the following error is
thrown: 
2006-02-01 16:29:40,709 INFO  [STDOUT] java.lang.NullPointerException
2006-02-01 16:29:40,710 INFO  [STDOUT]  at
com.lowagie.text.pdf.PdfReader.readDecryptedDocObj(PdfReader.java:564)
2006-02-01 16:29:40,710 INFO  [STDOUT]  at
com.lowagie.text.pdf.PdfReader.readDocObj(PdfReader.java:969)
2006-02-01 16:29:40,710 INFO  [STDOUT]  at
com.lowagie.text.pdf.PdfReader.readPdf(PdfReader.java:480)
2006-02-01 16:29:40,710 INFO  [STDOUT]  at
com.lowagie.text.pdf.PdfReader.<init>(PdfReader.java:175)
2006-02-01 16:29:40,710 INFO  [STDOUT]  at
com.lowagie.text.pdf.PdfReader.<init>(PdfReader.java:164)

I do not need to be able to read the attachment, only the main pdf
document's contents.

Any ideas how I will be able to access the main pdf?

I have attached a sample pdf with encrypted attachment.

Thanks 
Rynhard

Attachment: sample envelope.pdf
Description: Adobe PDF document

Reply via email to