You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "John Hewson (JIRA)" <ji...@apache.org> on 2014/09/03 18:37:53 UTC

[jira] [Resolved] (PDFBOX-2311) color space 'COSName{DefaultRGB}' does not exist in the current page's resources

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

John Hewson resolved PDFBOX-2311.
---------------------------------
       Resolution: Fixed
    Fix Version/s: 2.0.0

This PDF is invalid, it doesn't render any text at all with Adobe Reader. There's no such color space as "DefaultRGB", while the spec does contain a concept with that name, it is not a named color space.

I've made it so that PDFBox simply ignores the bad color space and prints out an error to the log.

> color space 'COSName{DefaultRGB}' does not exist in the current page's resources
> --------------------------------------------------------------------------------
>
>                 Key: PDFBOX-2311
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-2311
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Parsing
>    Affects Versions: 2.0.0
>            Reporter: simon steiner
>             Fix For: 2.0.0
>
>         Attachments: expected.pdf
>
>
> java -jar ~/pdf-box-svn/app/target/pdfbox-app-2.0.0-SNAPSHOT.jar PDFToImage expected.pdf
> Exception in thread "main" java.io.IOException: The color space 'COSName{DefaultRGB}' does not exist in the current page's resources
> 	at org.apache.pdfbox.pdmodel.graphics.color.PDColorSpace.create(PDColorSpace.java:104)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)