[ https://issues.apache.org/jira/browse/PDFBOX-3003?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14941016#comment-14941016 ]
Evgeniy Muravitskiy edited comment on PDFBOX-3003 at 10/2/15 11:05 AM: ----------------------------------------------------------------------- In PDColorSpace.create(COSBase, PDResources) you got the following check: {code} if (name == COSName.DEVICECMYK || name == COSName.CMYK || name == COSName.DEVICERGB || name == COSName.RGB || name == COSName.DEVICEGRAY || name == COSName.PATTERN) {code} I think you wanna write {{COSName.G}} instead of {{COSName.Pattern}}, are you? was (Author: evgeniy.muravitskiy): In PDColorSpace.create(COSBase, PDResources) you got the following check: {code} if (name == COSName.DEVICECMYK || name == COSName.CMYK || name == COSName.DEVICERGB || name == COSName.RGB || name == COSName.DEVICEGRAY || name == COSName.PATTERN) {code} I think you wanna write COSName.G instead of COSName.Pattern, are you? > Incorrect color space processing for inline images > -------------------------------------------------- > > Key: PDFBOX-3003 > URL: https://issues.apache.org/jira/browse/PDFBOX-3003 > Project: PDFBox > Issue Type: Bug > Components: PDModel > Affects Versions: 2.0.0 > Reporter: Evgeniy Muravitskiy > Attachments: ColorSpaceInlineImage.patch > > > Getting wrong color space for inline images because of abbreviations. (PDF > Reference 1.4, chapter 4.8.6). > According to specification inline images can use directly (not by names) only > 4 color spaces: DeviceGray (Gray), DeviceCMYK (CMYK), DeviceRGB (RGB), > Indexed (I). -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org