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

Implement some caching of PDImageXObject

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 2.0.2, 2.0.3, 3.0.0 PDFBox
    • Fix Version/s: None
    • Component/s: Rendering
    • Labels:
      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: