[
https://issues.apache.org/jira/browse/PDFBOX-2096?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14009890#comment-14009890
]
Tilman Hausherr edited comment on PDFBOX-2096 at 5/27/14 4:55 PM:
------------------------------------------------------------------
Your change doesn't alter my test images. The original change was made for
PDFBOX-584 in 2010 so I also tested that PDF and more related to that class and
all come out -fine- as before. I committed your change as rev 1597825 in the
1.8 branch. Thanks!
was (Author: tilman):
Your change doesn't alter my test images. The original change was made for
PDFBOX-584 in 2010 so I also tested that PDF and more related to that class and
all come out fine. I committed your change as rev 1597825 in the 1.8 branch.
Thanks!
> ICC profile ignored if number of components is 1
> ------------------------------------------------
>
> Key: PDFBOX-2096
> URL: https://issues.apache.org/jira/browse/PDFBOX-2096
> Project: PDFBox
> Issue Type: Bug
> Components: PDModel
> Affects Versions: 1.8.5
> Reporter: Dominic Tubach
> Assignee: Tilman Hausherr
> Fix For: 1.8.6
>
> Attachments: sample.pdf, with_profile.png, without_profile.png
>
>
> The method getRGBImage in PDPixelMap ignores the ICC profile of an ICCBased
> color space if the number of components is 1 (ll. 320-321 in 1.8.5):
> {code}
> byte[] map = new byte[] {(byte)0xff};
> cm = new IndexColorModel(bpc, 1, map, map, map, Transparency.OPAQUE);
> {code}
> This gives me a blank image in my PDF.
> If I use the code in l. 325
> {code}
> cm = colorspace.createColorModel( bpc );
> {code}
> I get the expected result.
> I'm sorry that I'm not allowed to attach the affected PDF. If required I
> would try to generate a different one.
--
This message was sent by Atlassian JIRA
(v6.2#6252)