Uploaded image for project: 'PDFBox'
  1. PDFBox
  2. PDFBOX-4627

Wrong color of uncolored tiling pattern

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.0.16
    • None
    • Rendering
    • None
    • Patch, Important

    Description

      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.

      Attachments

        1. uncolored_tiling_pattern.patch
          2 kB
          Jiri Kunhart
        2. uncolored_tiling_pattern.pdf
          29 kB
          Jiri Kunhart
        3. after_fix.png
          66 kB
          Jiri Kunhart
        4. before_fix.png
          1.68 MB
          Jiri Kunhart

        Issue Links

          Activity

            People

              Unassigned Unassigned
              kunhart Jiri Kunhart
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated: