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:21:24 UTC

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

     [ https://issues.apache.org/jira/browse/PDFBOX-2171?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tilman Hausherr resolved PDFBOX-2171.
-------------------------------------

    Resolution: Fixed

Done in rev 1606512 for the trunk.

> 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
>              Labels: pattern
>             Fix For: 2.0.0
>
>         Attachments: 002-002710-p14-bad.png, 002-002710-p14-good.png, 002-002710-p14.pdf
>
>
> 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)