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

Incorrect rendering when /Matte entry

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.11, 3.0.0 PDFBox
    • 2.0.12, 3.0.0 PDFBox
    • Rendering
    • None

    Description

      The image softmask in the attached file has a /Matte 0 0 0 entry. PDFBox displays the PDF differently than Adobe Reader, the reflection shown by PDFBox is barely visible. When the /Matte entry is deleted, then it is barely visible in Adobe Reader too. So the /Matte entry does make some difference, although I don't understand how.

      In the PDF specification, the formula shown is c' = m + α x (c - m). So 0 should have no effect?!

      I looked at the code of PDF.js, they have a special handling when alpha is 0, don't know why.

      Attachments

        1. gs-bugzilla688797-reduced.pdf
          23 kB
          Tilman Hausherr
        2. gs-bugzilla688797.pdf
          129 kB
          Tilman Hausherr
        3. bugzilla888437.pdf
          342 kB
          Tilman Hausherr

        Activity

          People

            tilman Tilman Hausherr
            tilman Tilman Hausherr
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: