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

Incorrect tiling pattern rendering when step smaller than bbox

    XMLWordPrintableJSON

Details

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

    Description

      From a remark by Rob Wu in a PDF.js project PR, I noticed that we're not doing tiling patterns correctly when the XStep or YStep is smaller than bounding box width / height. We're doing exactly what he told not to do.

      Base pattern:
      \/

      Expected rendering of repeated pattern (recall xstep = half of width):
      \XXXX

      Actual rendering if truncating pattern width to xstep:
      \\\\\

       

      Attachments

        1. gs-bugzilla690487.pdf
          1 kB
          Tilman Hausherr
        2. gs-bugzilla690487.pdf-1.png
          39 kB
          Tilman Hausherr
        3. gs-bugzilla690487.pdf-1-NEW-GOOD.png
          45 kB
          Tilman Hausherr
        4. patterns-Xstep10.pdf
          1 kB
          Tilman Hausherr
        5. patterns-Xstep5.pdf
          1 kB
          Tilman Hausherr
        6. patterns-Xstep7.pdf
          1 kB
          Tilman Hausherr
        7. patterns-Xstep-7.pdf
          1 kB
          Tilman Hausherr
        8. PDFJS-9770-slow.pdf
          110 kB
          Tilman Hausherr

        Activity

          People

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

            Dates

              Created:
              Updated: