[
https://issues.apache.org/jira/browse/PDFBOX-1687?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13744091#comment-13744091
]
Tilman Hausherr commented on PDFBOX-1687:
-----------------------------------------
My suggestion is now 1/2 obsolete due to the recent change of structure; I
suggest this change of convertToImage() in RenderUtil.java:
// renderPage(page, (Graphics2D) retval.getGraphics(),
retval.getWidth(), retval.getHeight(), scale, scale);
Graphics2D g2d = retval.createGraphics();
renderPage(page, g2d, retval.getWidth(), retval.getHeight(), scale,
scale);
g2d.dispose();
Reason: see doc of graphcs.dispose().
> add dispose() in pdfbox\pdmodel\PDPage.convertToImage()
> -------------------------------------------------------
>
> Key: PDFBOX-1687
> URL: https://issues.apache.org/jira/browse/PDFBOX-1687
> Project: PDFBox
> Issue Type: Improvement
> Components: PDModel
> Affects Versions: 2.0.0
> Reporter: Tilman Hausherr
> Priority: Trivial
> Attachments: PDFBOX-1687.patch
>
>
> I suggest to add these two lines at the end of
> pdfbox\pdmodel\PDPage.convertToImage()
> drawer.dispose();
> graphics.dispose();
> This would speed up cleanup after rendering. (Alternatively, delete the
> PageDrawer.dispose() function, because it is never used)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira