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

Rendering error for file with softmask outside bounds

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.0.24
    • None
    • Rendering
    • None

    Description

      Follow-up of PDFBOX-3000. The attached file doesn't render correctly. I don't know if we ever get this fixed, but here's what I know.

      In both cases the softmask is outside of the page bounds. The two softmasks are here (the second one is relevant for the bad square):

      Root/Pages/Kids/[0]/Resources/XObject/Fm21/Resources/ExtGState/GS0/SMask
      Root/Pages/Kids/[0]/Resources/ExtGState/GS29/SMask
      

      returning Color(0, 0, 0, 0) (full transparency) in PageDrawer.applySoftMaskToPaint() instead of the parentPaint (which is a TexturePaint) brings a correct rendering. However this would break almost all other renderings with a softmask outside of bounds, e.g. PDFJS-7992.pdf, PDFBOX-2103.pdf, 007087-payment-due-p58.pdf and many more - ask if you're working on this. The softmask is in CMYK and there is a backdrop.

      Attachments

        1. gs-bugzilla690816.pdf
          10.33 MB
          Tilman Hausherr
        2. gs-bugzilla690816.pdf-1-bad.png
          1.10 MB
          Tilman Hausherr
        3. gs-bugzilla690816.pdf-1-good.png
          1.09 MB
          Tilman Hausherr

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated: