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

Shaola Ren commented on PDFBOX-2117:
------------------------------------

I didn't synchronize the my local code with the most updated trunk code, my 
local code cannot even display the bullet contents. However, I suspected that 
the bad image is not caused by my calculation, I tested it with all the 
previous type 2 and 3 shading images that I have, it performs well. This 
problem may be caused by the way how other part of the software calling this 
type 3 shading class, as if another part of the software calls 
radialshadingcontext and that code was developed before I created the 
colorTable field and that code was designed to store some parameters from the 
radialshadingcontext instead of the whole instance, then those newly created 
data field may not be passed to the corresponding code, so the bad image does 
not have any type 3 shading image.

> AxialShadingContext is slow
> ---------------------------
>
>                 Key: PDFBOX-2117
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-2117
>             Project: PDFBox
>          Issue Type: Sub-task
>          Components: Rendering
>    Affects Versions: 1.8.6, 1.8.7, 2.0.0
>            Reporter: Petr Slaby
>            Assignee: Shaola Ren
>              Labels: shading, shadingpattern
>             Fix For: 1.8.7, 2.0.0
>
>         Attachments: 000001_MTEXT_CS6.pdf, AxialShading.patch, 
> AxialShading1.patch, AxialShadingContext.java.getrgbimage, 
> GWG061_Shading_x1a.pdf, GWG061_Shading_x1a.pdf-1.png, 
> GWG061_Shading_x1a.pdf-1.png-diff.png, PDFBOX-2117-068519.pdf, 
> PDFBOX-2117-068519.pdf-2-bad.png, PDFBOX-2117-068519.pdf-2-good.png, 
> Shading2Function2.pdf, Shading2Function2.ps, Shading2Function2text.pdf, 
> asy-shade.pdf, color_gradient.pdf, shading_pattern.pdf
>
>
> AxialShadingContext#getRaster() is on top of profiler hot spots in documents 
> that use an axial shading. Inside it, the slowest part is calling 
> PDColorSpaceRGB#toRGB() and PDFunctionType3#eval() (in this order).
>   



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

Reply via email to