[
https://issues.apache.org/jira/browse/PDFBOX-2171?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14047133#comment-14047133
]
Andreas Lehmkühler commented on PDFBOX-2171:
--------------------------------------------
I've stumbled upon the very same issue and had a quick look too. It seems as if
the page height isn't used any more. Saying that, should we remove it or did I
miss something?
> 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)