[ https://issues.apache.org/jira/browse/PDFBOX-4627?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16911989#comment-16911989 ]
Jiri Kunhart commented on PDFBOX-4627: -------------------------------------- [~tilman] This pdf file was created by Amyuni PDF Converter and originally contains many objects, I deleted all personal data and left only the problematic pattern object. It is not only about Adobe Reader, but I tried also Foxit Reader and it shows it also well, without any error. Also preflight in Adobe Pro doesn't report any error If I do syntax check. I read PDF Reference fifth edition and I didn't find exactly the sentence mentioned by [~mkl], there is only written this: "The pattern’s content stream does not explicitly specify any colors; it can paint an image mask (see “Stencil Masking” on page 320) but no other kind of image. " And this sounds not so strictly to me. > Wrong color of uncolored tiling pattern > --------------------------------------- > > Key: PDFBOX-4627 > URL: https://issues.apache.org/jira/browse/PDFBOX-4627 > Project: PDFBox > Issue Type: Bug > Components: Rendering > Affects Versions: 2.0.16 > Reporter: Jiri Kunhart > Priority: Major > Attachments: after_fix.png, before_fix.png, > uncolored_tiling_pattern.patch, uncolored_tiling_pattern.pdf > > > The attached pdf file with uncolored tiling pattern is rendered wrongly (see > "before_fix.png"). The problem is that pattern stream contains > /DevGrayCS cs > which overwrites PDPattern color space stored in > PDGraphicsState#nonStrokingColor. I did a small fix which ignores all > settings of color space inside of uncolored tiling pattern stream and the > result seems to be good (see "after_fix.png"). > Note: the pattern in the png file looks diferently than in the original pdf > file, but this should be handled probably in the other issue. -- This message was sent by Atlassian Jira (v8.3.2#803003) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org