[ 
https://issues.apache.org/jira/browse/PDFBOX-578?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12965452#action_12965452
 ] 

Martijn Brinkers commented on PDFBOX-578:
-----------------------------------------

I am able to open the attached PDFs with a build from trunk. The PDF documents 
are AES encrypted and since PDFBOX-872 AES is supported. Are you using a build 
from trunk?

That said, I think it's important to try to try to parse as many documents as 
possible and graceful handle PDF document errors if possible, especially when 
forceParsing is enabled. I have added a couple of patches which gracefully 
handle certain PDF errors found in real life ebooks (see 
https://issues.apache.org/jira/browse/PDFBOX-908).

> NPE NullPointerException in PDPageNode.getCount
> -----------------------------------------------
>
>                 Key: PDFBOX-578
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-578
>             Project: PDFBox
>          Issue Type: Bug
>    Affects Versions: 0.8.0-incubator
>            Reporter: James Wilson
>         Attachments: 0000462526-0000000000-04cv00399.pdf, 
> FormI-9-English.pdf, nullcount.patch, SWMC_WarehouseAgreement-V1.pdf
>
>
> java.lang.NullPointerException
>         at org.apache.pdfbox.pdmodel.PDPageNode.getCount(PDPageNode.java:102)
>         at 
> org.apache.pdfbox.pdmodel.PDDocument.getNumberOfPages(PDDocument.java:925)
>         at 
> us.fed.nmcourt.common.pdfbox.NmdLucenePDFDocument.addContent(NmdLucenePDFDocument.java:558)
>         at 
> us.fed.nmcourt.common.pdfbox.NmdLucenePDFDocument.convertDocument(NmdLucenePDFDocument.java:346)
>         at 
> us.fed.nmcourt.common.pdfbox.NmdLucenePDFDocument.getDocument(NmdLucenePDFDocument.java:444)
>         at 
> us.fed.nmcourt.common.pdfbox.NmdLucenePDFDocument.main(NmdLucenePDFDocument.java:758)
> Attached is an example of pdf that causes this exception.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to