[
https://issues.apache.org/jira/browse/PDFBOX-5442?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17541601#comment-17541601
]
Tilman Hausherr commented on PDFBOX-5442:
-----------------------------------------
These color differences are mainly related to PDFBOX-5051. If we replace
{{colorConvertOp.filter()}} in {{PDColorSpace.toRGBImageAWT()}} with
{code}
for (int x = 0; x < src.getWidth(); ++x)
for (int y = 0; y < src.getHeight(); ++y)
dest.setRGB(x, y, src.getRGB(x, y));
{code}
then it looks much better.
Other slight differences are because we don't use the "U.S. Web Coated (SWOP)
v2" profile for CMYK. You could try to add this at the beginning of your code:
{code}
PDDeviceCMYK.INSTANCE = new PDDeviceCMYK()
{
@Override
protected ICC_Profile getICCProfile() throws IOException
{
try (InputStream is = new FileInputStream("...../U.S. Web
Coated (SWOP) v2.icm"))
{
return ICC_Profile.getInstance(is);
}
}
};
{code}
> Rending with the incorrect color
> --------------------------------
>
> Key: PDFBOX-5442
> URL: https://issues.apache.org/jira/browse/PDFBOX-5442
> Project: PDFBox
> Issue Type: Bug
> Components: Rendering
> Affects Versions: 2.0.26
> Reporter: Daniel Persson
> Priority: Minor
> Attachments: 23115_133_1_25693_17.pdf, 23115_133_1_25693_171.png
>
>
> Hi Team.
>
> We have noticed that PDFBox sometimes renders with brighter colors than other
> renderers and it doesn't matter that much on photos but when a PDF is split
> into multiple smaller images and all images aren't rendered with the same hue
> you will have a strangely looking image.
>
> To reproduce: Open PDF in Debugger or render an image with PDFToImage.
--
This message was sent by Atlassian Jira
(v8.20.7#820007)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]