You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Tilman Hausherr (JIRA)" <ji...@apache.org> on 2014/06/29 16:17:24 UTC

[jira] [Created] (PDFBOX-2171) UnsupportedOperationException for stencil image / pattern

Tilman Hausherr created PDFBOX-2171:
---------------------------------------

             Summary: UnsupportedOperationException for stencil image / pattern
                 Key: PDFBOX-2171
                 URL: https://issues.apache.org/jira/browse/PDFBOX-2171
             Project: PDFBox
          Issue Type: Bug
          Components: Rendering
    Affects Versions: 2.0.0
            Reporter: Tilman Hausherr
            Assignee: Tilman Hausherr
             Fix For: 2.0.0


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

{code}
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)
{code}

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.



--
This message was sent by Atlassian JIRA
(v6.2#6252)