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

Daniel Wilson resolved PDFBOX-528.
----------------------------------

    Resolution: Fixed

Incorporated Andrew's patch

> Inlined images with a ColorSpace in the resource dictionary don't work
> ----------------------------------------------------------------------
>
>                 Key: PDFBOX-528
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-528
>             Project: PDFBox
>          Issue Type: Bug
>          Components: PDModel
>            Reporter: Andrew Duffy
>            Priority: Minor
>             Fix For: 0.8.0-incubator
>
>         Attachments: namedColorSpace.patch, survey.pdf
>
>
> The attached PDF when drawn outputs this to stderr:
> java.io.IOException: Error: Unknown colorspace 'R12'
>       at 
> org.apache.pdfbox.pdmodel.graphics.color.PDColorSpaceFactory.createColorSpace(PDColorSpaceFactory.java:158)
>       at 
> org.apache.pdfbox.pdmodel.graphics.color.PDColorSpaceFactory.createColorSpace(PDColorSpaceFactory.java:62)
>       at 
> org.apache.pdfbox.util.ImageParameters.getColorSpace(ImageParameters.java:127)
>       at 
> org.apache.pdfbox.pdmodel.graphics.xobject.PDInlinedImage.createImage(PDInlinedImage.java:121)
>       at 
> org.apache.pdfbox.util.operator.pagedrawer.BeginInlineImage.process(BeginInlineImage.java:57)
>       at 
> org.apache.pdfbox.util.PDFStreamEngine.processOperator(PDFStreamEngine.java:510)
>       at 
> org.apache.pdfbox.util.PDFStreamEngine.processSubStream(PDFStreamEngine.java:223)
>       at 
> org.apache.pdfbox.util.PDFStreamEngine.processStream(PDFStreamEngine.java:182)
>       at org.apache.pdfbox.pdfviewer.PageDrawer.drawPage(PageDrawer.java:92)
>       at org.apache.pdfbox.pdmodel.PDPage.convertToImage(PDPage.java:686)
> This is because PDInlinedImage doesn't check for a colorspace in the page 
> resources like SetStrokingColorSpace and SetNonStrokingColorSpace do.

-- 
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