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

JPEG input file not closed when creating PDImageXObject

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.0
    • Fix Version/s: 2.0.0
    • Component/s: PDModel
    • Labels:
      None

      Description

      In PDImageXObject, this code

      return JPEGFactory.createFromStream(doc, new FileInputStream(file));
      

      results in an unclosed file.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: