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

add dispose() in pdfbox\pdmodel\PDPage.convertToImage()

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 2.0.0
    • Fix Version/s: 1.8.3, 2.0.0
    • Component/s: PDModel
    • Labels:
      None

      Description

      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)

        Attachments

        1. PDFBOX-1687.patch
          0.6 kB
          Sewwandi Wijayaratna

          Activity

            People

            • Assignee:
              lehmi Andreas Lehmkühler
              Reporter:
              tilman Tilman Hausherr
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: