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

Tilman Hausherr commented on PDFBOX-5065:
-----------------------------------------

gs-bugzilla690816.pdf is related to having a CMYK group colorspace combined 
with "differences" blending. I tried creating a CMYK image near "// FIXME - 
color space" like this
{code}
else if (colorSpace instanceof PDDeviceCMYK)
{
    String name = "/org/apache/pdfbox/resources/icc/ISOcoated_v2_300_bas.icc";
    ColorSpace cmykCS;
    try (InputStream resourceAsStream = 
PDDeviceCMYK.class.getResourceAsStream(name);
         InputStream is = new BufferedInputStream(resourceAsStream))
    {
        cmykCS = new ICC_ColorSpace(ICC_Profile.getInstance(is));
    }
    // https://stackoverflow.com/a/46153884/535646
    ColorModel colorModel = new ComponentColorModel(cmykCS, true, false, 
Transparency.TRANSLUCENT, DataBuffer.TYPE_BYTE);
    image = new BufferedImage(colorModel, 
colorModel.createCompatibleWritableRaster(width, height), 
colorModel.isAlphaPremultiplied(), null);
}
{code}
but that didn't help. Maybe both source and destination image must be converted 
to CMYK before blending and then back. It reminds me of [that video with Dr. 
Hans Bärfuss|https://www.youtube.com/watch?v=TiqDqd-1pwU].

> Transparency Group issues (2)
> -----------------------------
>
>                 Key: PDFBOX-5065
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-5065
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Rendering
>    Affects Versions: 2.0.22
>            Reporter: Tilman Hausherr
>            Priority: Major
>              Labels: Transparency
>         Attachments: gs-bugzilla690816.pdf, gs-bugzilla691650-2.pdf, 
> gs-bugzilla691650-2_reduced.pdf, gs-bugzilla693033.pdf, 
> gs-bugzilla697433-2.pdf, samsung_galaxy_s_4_um-p1_reduced.pdf
>
>
> Follow-up to PDFBOX-3000. Following files don't render properly and it's 
> likely transparency group issues:
> - eci_altona-test-suite-v2_technical2_one-patch-per-page_x4.pdf, pages 7 and 
> 8 (file found at http://www.eci.org/de/downloads )
> - gs-bugzilla690816.pdf, rectangle top left
> - gs-bugzilla691650-2.pdf, fade in the mid rectangle is in wrong direction
> - gs-bugzilla693033.pdf, UN logo
> - gs-bugzilla697433-2.pdf, inner rectangle missing
> - samsung_galaxy_s_4_um-p1_reduced.pdf, background rectangle shouldn't be 
> there



--
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