[ 
https://issues.apache.org/jira/browse/PDFBOX-5074?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17261849#comment-17261849
 ] 

Tilman Hausherr edited comment on PDFBOX-5074 at 1/9/21, 11:46 AM:
-------------------------------------------------------------------

We get the "correct" results when using the alternative colorspace. However the 
PDF specification tells "Conforming readers need not use the alternateSpace and 
tintTransform parameters, and may instead use custom blending algorithms, along 
with other information provided in the attributes dictionary if present" and 
that is our implementation.

I looked at the source code of PDF.js and my impression is that they use the 
AlternateCS and tintTransform parameters only. They use DeviceN like the 
Separation colorspace. But this is not always the best. For example, PDFBox 
gets a nice rendering of the PDF from
https://github.com/mozilla/pdf.js/issues/6951
but if we use the AlternateCS and tintTransform parameters only, then we get 
the same bad rendering that they get.


was (Author: tilman):
We get the "correct" results when using the alternative colorspace. However the 
PDF specification tells "Conforming readers need not use the alternateSpace and 
tintTransform parameters, and may instead use custom blending algorithms, along 
with other information provided in the attributes dictionary if present" and 
that is our implementation. I looked at the source code of PDF.js and my 
impression is that they use the AlternateCS and tintTransform parameters only. 
The use DeviceN like the Separation colorspace.

> Incorrect color
> ---------------
>
>                 Key: PDFBOX-5074
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-5074
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Rendering
>    Affects Versions: 2.0.22
>            Reporter: Tilman Hausherr
>            Priority: Major
>         Attachments: PDFBOX-5074.pdf, PDFBOX-5074_2.pdf
>
>
> Reported by Esteban Ruiz on the mailing list. Color should be between white 
> (0) and green (1), but is between black and green.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to