Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PDColorSpace ISSUE: Unable to create a valid color space with COSDictionary #43

Open
wants to merge 6,417 commits into
base: 2.0
Choose a base branch
from

Conversation

santino83
Copy link

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

THausherr and others added 30 commits August 2, 2017 18:25
THausherr and others added 28 commits January 8, 2018 17:01
… with "?", as suggested by Michael Klink

git-svn-id: https://svn.apache.org/repos/asf/pdfbox/branches/2.0@1821919 13f79535-47bb-0310-9956-ffa450edef68
…SBase colorSpace is a COSDictionary with key COSName.COLORSPACE => value a valid color space
@THausherr
Copy link
Contributor

Please send me the file to tilman at snafu dot de and mention what confidentiality you need. (keep for myself, share among committers, destroy after fixing bug, or whatever you wish). If possible I'll create a non confidential test case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants