[
https://issues.apache.org/jira/browse/PDFBOX-2117?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14026470#comment-14026470
]
Petr Slaby commented on PDFBOX-2117:
------------------------------------
[~jahewson]: I have tried to change the PDColorSpace#toRGBImage() now. With a
PDF that uses axial shading in CMYK, the rendering is now actually much slower.
The time is now being spent in PDColorSpace#toRGBImageAWT() called from
PDDeviceCMYK. Maybe you could check yourself to see if I did something wrong?
(Attached AxialShadingContext.java.getrgbimage and 000001_MTEXT_CS6.pdf)
> AxialShadingContext is slow
> ---------------------------
>
> Key: PDFBOX-2117
> URL: https://issues.apache.org/jira/browse/PDFBOX-2117
> Project: PDFBox
> Issue Type: Improvement
> Reporter: Petr Slaby
> Attachments: 000001_MTEXT_CS6.pdf, AxialShading.patch,
> AxialShading1.patch, AxialShadingContext.java.getrgbimage,
> 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)