Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.0.2, 2.0.3, 3.0.0 PDFBox
-
None
Description
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!)
Attachments
Issue Links
- duplicates
-
PDFBOX-3483 Implement some caching of PDImageXObject
- Closed
- is related to
-
PDFBOX-3700 OutOfMemoryException converting PDF to TIFF Images
- Closed
- relates to
-
PDFBOX-2370 Move caching outside of PDResources
- Closed