Are you using my patch and calling my function when you get this NPE? I've 
processing a large number of PDFs from various sources which are encrypted 
and haven't run into this.  I'm just opening, decrypting, stripping all 
encryption, and saving.  This sounds like the same thing you're doing...

I'd suggest posting the simplest code segment possible which illustrates 
the issue and the stacktrace to the developer list.  I would agree that 
it's a bug and should be changed somehow, but it may be that the proper 
thing is to throw an exception and the solution will just be to throw a 
different exception with a better error message.  In that case it wouldn't 
solve your problem, but either way we should be able to get an answer for 
you.

--Adam




"Hesham G." <heshamgne...@gmail.com> 
11/03/2009 22:56
Please respond to
pdfbox-users@incubator.apache.org


To
<pdfbox-users@incubator.apache.org>
cc

Subject
Re: Fwd: PDF Permissions






Faisal ,

You have 2 permissions types to access a PDF, each has his own password : 
Owner & User.
The Owner can do all the operations in the PDF, so as Adam said your 
problem 
may be because you are accessing the PDF as the owner, that's why you can 
still print it.


Adam ,
Isn't it a bug that should be added to PDFBox that if we have an Encrypted 

PDF that we want to decrypt, then save it decrypted. I guess this is a 
normal demand, but as I mentioned before, it causes the 
NullPointerException.

Best regards ,
Hesham 



?  Click here to submit conditions  

This email and any content within or attached hereto from  Sun West Mortgage 
Company, Inc.  is confidential and/or legally privileged. The information is 
intended only for the use of the individual or entity named on this email. If 
you are not the intended recipient, you are hereby notified that any 
disclosure, copying, distribution or the taking of any action in reliance on 
the contents of this email information is strictly prohibited, and that the 
documents should be returned to this office immediately by email. Receipt by 
anyone other than the intended recipient is not a waiver of any privilege. 
Please do not include your social security number, account number, or any other 
personal or financial information in the content of the email. Should you have 
any questions, please call  (800) 453 7884.   

Reply via email to