Petr Slaby created PDFBOX-2141:
----------------------------------

             Summary: Shading not applied to text
                 Key: PDFBOX-2141
                 URL: https://issues.apache.org/jira/browse/PDFBOX-2141
             Project: PDFBox
          Issue Type: Bug
          Components: Rendering
    Affects Versions: 2.0.0
            Reporter: Petr Slaby
            Priority: Minor


The attached PDF draws a text filled with horizontal shading going from red to 
blue. When rendered via PDFBox, the text is completely filled with red. The 
problem is that AxialShadingContext#getRaster() gets called with positions that 
completely fell outside of the range stored in its coords[] field. The fix 
seems to be to set glyph transform rather than graphics2d transform in 
PageDrawer#writeText() as shown in the attached patch.



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

Reply via email to