You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Tilman Hausherr (JIRA)" <ji...@apache.org> on 2016/09/08 17:08:22 UTC

[jira] [Created] (PDFBOX-3484) Implement some caching of PDImageXObject

Tilman Hausherr created PDFBOX-3484:
---------------------------------------

             Summary: Implement some caching of PDImageXObject
                 Key: PDFBOX-3484
                 URL: https://issues.apache.org/jira/browse/PDFBOX-3484
             Project: PDFBox
          Issue Type: Bug
          Components: Rendering
    Affects Versions: 2.0.2, 2.0.3, 2.1.0
            Reporter: Tilman Hausherr
             Fix For: 2.0.3, 2.1.0


Markus Barbey mentioned on the mailing list that {{PageDrawer.drawImage(PDImage)}} has a new instance every time, because the caching in PDResources is disabled, so the caching of the BufferedImage is useless.

It is indeed disabled, see near the bottom of PDFBOX-2370.

I'll enable it for cases where PDImageXObject does not need anything from the resources. An image could be in several pages with the same colorspace name, but that name could be something different in different pages. (very unlikeky, but possible!)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org