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

UnsupportedOperationException for stencil image / pattern

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.0
    • 2.0.0
    • Rendering

    Description

      I get this with the attached image, which is page 14 of the file 002710.pdf in
      http://digitalcorpora.org/corp/nps/files/govdocs1/zipfiles/002.zip

      java.lang.UnsupportedOperationException
              at org.apache.pdfbox.pdmodel.graphics.color.PDPattern.toPaint(PDPattern.java:104)
              at org.apache.pdfbox.util.operator.pagedrawer.Invoke.process(Invoke.java:76)
      

      Invoke.java has a comment "TODO: pass page height?".

      After changing the code by passing the height (see also rev 1580326), running code in PDPattern.java is called and I get a better image. To see the difference, look at "Sailor springs" and "New Harmony Consolidated". In the "good" image there's a pattern which isn't in the "bad" image.

      Attachments

        1. 002-002710-p14-good.png
          661 kB
          Tilman Hausherr
        2. 002-002710-p14-bad.png
          658 kB
          Tilman Hausherr
        3. 002-002710-p14.pdf
          108 kB
          Tilman Hausherr

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: