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

Tilman Hausherr commented on PDFBOX-4327:
-----------------------------------------

[[email protected]] please check if Tika finds 5 images.

> NullPointerException in PDFStreamEngine.processSoftMask() when running 
> ExtractImages
> ------------------------------------------------------------------------------------
>
>                 Key: PDFBOX-4327
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-4327
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Utilities
>    Affects Versions: 2.0.11
>            Reporter: Tilman Hausherr
>            Assignee: Tilman Hausherr
>            Priority: Major
>             Fix For: 2.0.13, 3.0.0 PDFBox
>
>         Attachments: 000163-p2.pdf
>
>
> {noformat}
> Exception in thread "main" java.lang.NullPointerException
>         at 
> org.apache.pdfbox.contentstream.PDFStreamEngine.processSoftMask(PDFStreamEngine.java:201)
>         at 
> org.apache.pdfbox.tools.ExtractImages$ImageGraphicsEngine.run(ExtractImages.java:207)
>         at 
> org.apache.pdfbox.tools.ExtractImages.extract(ExtractImages.java:182)
>         at org.apache.pdfbox.tools.ExtractImages.run(ExtractImages.java:145)
>         at org.apache.pdfbox.tools.ExtractImages.main(ExtractImages.java:90)
>         at org.apache.pdfbox.tools.PDFBox.main(PDFBox.java:62){noformat}
> The cause is that the ExtGState containing the softmask isn't assigned to the 
> graphics state. Just assigning the softmask isn't enough (another NPE occurs) 
> because the initial CTM (needed by a clone) is only set when using 
> {{copyIntoGraphicsState}}.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to