[ 
https://issues.apache.org/jira/browse/PDFBOX-289?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Declan Newman updated PDFBOX-289:
---------------------------------

    Attachment:     (was: PDF289.pdf)

> Null pointer exception in scanned PDF's
> ---------------------------------------
>
>                 Key: PDFBOX-289
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-289
>             Project: PDFBox
>          Issue Type: Bug
>            Priority: Minor
>
> [imported from SourceForge]
> http://sourceforge.net/tracker/index.php?group_id=78314&atid=552832&aid=1755412
> Originally submitted by nobody on 2007-07-17 04:08.
> We are trying to extract text and images form PDF's. I have 2 PDF's which 
> cause PDFBox to crash.  I get  null pointer exception.  The first PDF is a 
> scanned document. The second PDF is a document that is surrounded by a table 
> and contains images as well. These two documnets are causing PDF to get an 
> exception.  Does anyone have any suggestions? 
> [comment on SourceForge]
> Originally sent by dgakhar.
> Logged In: YES 
> user_id=1937173
> Originator: NO
> Hi, my name is Deepika and trying to resolve exceptions related to image 
> extractions. It would be great if you could upload the files that caused 
> PDFBox to break.
> Regards,
> Deepika
> [comment on SourceForge]
> Originally sent by weiju.
> Logged In: YES 
> user_id=186935
> Originator: NO
> I get the same problem, getting a
> java.lang.NullPointerException
>         at org.pdfbox.pdmodel.PDPageNode.getAllKids(PDPageNode.java:194)
>         at org.pdfbox.pdmodel.PDPageNode.getKids(PDPageNode.java:171)
> A quick peek in the source code shows me that the PDPageNode is created with 
> PDDocumentCatalog.java, line 208:
> public PDPageNode getPages()
> {
>   return new 
> PDPageNode((COSDictionary)root.getDictionaryObject(COSName.PAGES));
> }
> But my root node dictionary only seems to contain the "Type" key, so the 
> above source code probably leads to a PDPageNode with a null dictionary.
> [comment on SourceForge]
> Originally sent by nobody.
> Logged In: NO 
> I have found the same problem. The released version of the code gets a class 
> cast exception. This appears to be fixed in the latest development build, but 
> now it gets a NULL pointer 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