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

John Hewson edited comment on PDFBOX-1936 at 3/19/14 5:28 PM:
--------------------------------------------------------------

So it just occurred to me that shading patterns are, well, patterns. This means 
that the section of the PDF spec "General Properties of Patterns" applies to 
them, just as it applied to Tiling Patterns. So the matrix for a shading 
pattern also needs to be calculated using it's parent stream's initial 
transform, instead of using the CTM. This is what I'm working on for 
PDFBOX-1094 currently and am discussing the needed changes on the mailing list, 
see "Removing processStream and processSubStream".


was (Author: jahewson):
So it just occurred to me that shading patterns are, well, patterns. This means 
that the section of the PDF spec "General Properties of Patterns" applies to 
them, just as it applied to Tiling Patterns. So the matrix for a shading 
pattern also needs to be calculated using it's parent stream's initial 
transform, instead of using the CTM. This is what I'm working on for 
PDFBOX-1094 correctly and am discussing the needed changes on the mailing list.

> text outline with shading pattern is invisible
> ----------------------------------------------
>
>                 Key: PDFBOX-1936
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1936
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Rendering
>    Affects Versions: 2.0.0
>            Reporter: Tilman Hausherr
>              Labels: shading, shadingpattern
>         Attachments: color_gradient.pdf, color_gradient.pdf-1.png, 
> color_gradient.pdf-1.png, pslib-shading.pdf, pslib-shading.pdf-4.png, 
> pslib-shading.pdf-4.png
>
>
> This is also somewhat of a regression: in PDFBOX-615, the file 
> color_gradient.pdf-1.png had the text rendered, although in black. Currently, 
> the text is invisible.



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

Reply via email to