You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Andreas Lehmkühler (JIRA)" <ji...@apache.org> on 2013/08/26 19:53:53 UTC

[jira] [Closed] (PDFBOX-289) Null pointer exception in scanned PDF's

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

Andreas Lehmkühler closed PDFBOX-289.
-------------------------------------

    Resolution: Cannot Reproduce
      Assignee: Andreas Lehmkühler

It's impossible to reproduce this issue without any sample -> set to closed
                
> Null pointer exception in scanned PDF's
> ---------------------------------------
>
>                 Key: PDFBOX-289
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-289
>             Project: PDFBox
>          Issue Type: Bug
>            Assignee: Andreas Lehmkühler
>            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.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira