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

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

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 2.0.0
    • 1.8.3, 2.0.0
    • PDModel
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: