GitHub user santino83 opened a pull request: https://github.com/apache/pdfbox/pull/43
PDColorSpace ISSUE: Unable to create a valid color space with COSDictionary Unable to create a valid color space when COSBase colorSpace is a COSDictionary with key COSName.COLORSPACE => value a valid color space. We are run in this issue trying to transform a pdf of a customer of us into jpgs. This pdf has 9 pages, one of them, when ColorSpace is processing, returns a COSDictionary with a single entry, a COSName.COLORSPACE => COSName.DEFAULT_RGB key/value pair. In this situation, PDColorSpace.create throws an exception instead of handle the case. We can provide the original pdf that rises the issue, but only in private mode because it's full of personal information and we won't edited it to not risk to lose the original COS configuration You can merge this pull request into a Git repository by running: $ git pull https://github.com/santino83/pdfbox 2.0 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/pdfbox/pull/43.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #43 ---- commit dd5c64d2890151145b01b3da8e8037fd4225e26f Author: Giorgio M. Santini <gsantini@...> Date: 2018-01-25T17:26:03Z PDColorSpace ISSUE: Unable to determinate a valid colro space when COSBase colorSpace is a COSDictionary with key COSName.COLORSPACE => value a valid color space ---- --- --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org