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 (Closed JIRA)" <ji...@apache.org> on 2011/12/14 14:33:30 UTC

[jira] [Closed] (PDFBOX-1189) Nullpointer Exception while extracting images

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

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

    Resolution: Duplicate
      Assignee: Andreas Lehmkühler
    
> Nullpointer Exception while extracting images
> ---------------------------------------------
>
>                 Key: PDFBOX-1189
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1189
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Text extraction
>    Affects Versions: 1.6.0
>         Environment: Windows XP version 2002, service pack 3, Inte;(R) Pentium(R) 4 CPU, 3.00GHz, 2.99 GHz, 1.99 GB of RAM, 
>            Reporter: sagar pise
>            Assignee: Andreas Lehmkühler
>              Labels: exception, image, nullpointer
>         Attachments: TestFile.pdf
>
>   Original Estimate: 672h
>  Remaining Estimate: 672h
>
> When I tried to extract images using ExtractImages.java, I got following Nullpointer exception
> Dec 14, 2011 6:30:11 PM org.apache.pdfbox.pdmodel.graphics.xobject.PDPixelMap getRGBImage
> SEVERE: java.lang.NullPointerException
> java.lang.NullPointerException
> 	at org.apache.pdfbox.pdmodel.graphics.xobject.PDXObjectImage.getColorSpace(PDXObjectImage.java:286)
> 	at org.apache.pdfbox.pdmodel.graphics.xobject.PDPixelMap.getRGBImage(PDPixelMap.java:140)
> 	at org.apache.pdfbox.pdmodel.graphics.xobject.PDPixelMap.write2OutputStream(PDPixelMap.java:285)
> 	at org.apache.pdfbox.pdmodel.graphics.xobject.PDXObjectImage.write2file(PDXObjectImage.java:139)
> 	at org.apache.pdfbox.ExtractImages.extractImages(ExtractImages.java:165)
> 	at org.apache.pdfbox.ExtractImages.main(ExtractImages.java:62)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira