[
https://issues.apache.org/jira/browse/PDFBOX-580?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12786995#action_12786995
]
Andreas Lehmkühler commented on PDFBOX-580:
-------------------------------------------
survey.pdf from our rendering test arena [1] is a suitable sample for this issue
[1] http://svn.eu.apache.org/viewvc/pdfbox/trunk/test/input/rendering/survey.pdf
> Use a dummy color instead of failing with unsupported color spaces
> ------------------------------------------------------------------
>
> Key: PDFBOX-580
> URL: https://issues.apache.org/jira/browse/PDFBOX-580
> Project: PDFBox
> Issue Type: Improvement
> Components: PDModel
> Reporter: Jukka Zitting
> Assignee: Jukka Zitting
>
> At work we encounter some PDF files with color spaces that PDFBox does not
> support. Currently an IOException gets thrown whenever such color spaces are
> being accessed, which is not ideal especially (as often is the case) when the
> troublesome color space is only used for some small part of the document. It
> would be nicer if PDFBox just logged a warning about the problem and used
> some dummy color for the entire troublesome color space.
> For the record, the IOException trace we're seeing is:
> org.apache.pdfbox.pdmodel.graphics.color.PDColorState java.io.IOException:
> Not implemented java.io.IOException: Not implemented
> at
> org.apache.pdfbox.pdmodel.graphics.color.PDPattern.createColorSpace(PDPattern.java:92)
> at
> org.apache.pdfbox.pdmodel.graphics.color.PDColorSpace.getJavaColorSpace(PDColorSpace.java:85)
> at
> org.apache.pdfbox.pdmodel.graphics.color.PDColorState.createColor(PDColorState.java:138)
> at
> org.apache.pdfbox.pdmodel.graphics.color.PDColorState.getJavaColor(PDColorState.java:112)
> at org.apache.pdfbox.pdfviewer.PageDrawer.fillPath(PageDrawer.java:260)
> at
> org.apache.pdfbox.util.operator.pagedrawer.FillEvenOddRule.process(FillEvenOddRule.java:56)
> at
> org.apache.pdfbox.util.PDFStreamEngine.processOperator(PDFStreamEngine.java:516)
> at
> org.apache.pdfbox.util.PDFStreamEngine.processSubStream(PDFStreamEngine.java:229)
> at
> org.apache.pdfbox.util.PDFStreamEngine.processStream(PDFStreamEngine.java:188)
> at org.apache.pdfbox.pdfviewer.PageDrawer.drawPage(PageDrawer.java:99)
> at org.apache.pdfbox.pdmodel.PDPage.convertToImage(PDPage.java:692)
> at org.apache.pdfbox.pdmodel.PDPage.convertToImage(PDPage.java:663)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.