[ 
https://issues.apache.org/jira/browse/PDFBOX-2171?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14047135#comment-14047135
 ] 

Tilman Hausherr commented on PDFBOX-2171:
-----------------------------------------

Yes this was discussed before. Historically the height was used for shading, 
and is still used in 1.8 because there there is a vertical flip needed. Yes it 
can be removed, but I prefer that this be done after GSoC2014 is finished so 
that my student doesn't have to change her copy of the code at this time.

> 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)

Reply via email to