Uploaded image for project: 'PDFBox'
  1. PDFBox
  2. PDFBOX-3483

Implement some caching of PDImageXObject

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 2.0.2, 2.0.3, 3.0.0 PDFBox
    • None
    • Rendering
    • 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

          Activity

            People

              Unassigned Unassigned
              tilman Tilman Hausherr
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: