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

Incorrect tiling pattern rendering when step smaller than bbox

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.0.13
    • Fix Version/s: None
    • Component/s: Rendering
    • Labels:

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

          Activity

            People

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

              Dates

              • Created:
                Updated: