[
https://issues.apache.org/jira/browse/PDFBOX-522?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Andrew Duffy updated PDFBOX-522:
--------------------------------
Attachment: nonRGB.patch
The attachment allows PDIndexed to work with an underlying colour space that
returens a byte-based ColorModel from createColorModel, e.g. DeviceGray or
DeviceCMYK. createColorModel is changed and getBaseColorSpace has code removed
that restricted which colorspaces it would return.
In addition, lookupColor and setLookupColor, which are never called in PDFBox,
are changed so they behave correctly with the same signature - previously the
meaning of lookupIndex and componentNumber was reversed so I changed their
order in the signature so any external code that successfully uses them can
continue to do so if this patch is applied.
> PDIndexed.java does not support a base color space other than DeviceRGB
> -----------------------------------------------------------------------
>
> Key: PDFBOX-522
> URL: https://issues.apache.org/jira/browse/PDFBOX-522
> Project: PDFBox
> Issue Type: Bug
> Components: PDModel
> Affects Versions: 0.8.0-incubator
> Reporter: Andrew Duffy
> Priority: Minor
> Attachments: nonRGB.patch
>
>
> PDIndexed.createColorModel assumes that the string or stream is interleaved
> RGB values; thius is only the case if the underlying colour space is
> DeviceRGB.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.