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

Optimize COSStream scratch file usage

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.0
    • None
    • PDModel
    • None

    Description

      The usage of scratch file buffers in COSStreams is quite sloppy. A never filled buffer is created in the beginning and existing buffers are discarded without being closed when a variant of createOutputStream is called. Furthermore it should be clarified if requesting an input stream without having created an output stream before is ok and if a returned input stream keeps valid after a new output stream is created (which is crucial for proper buffer-closing).

      This issue should resolve some of the shortcomings and document the expected or even required usage of COSStream.

      Attachments

        Issue Links

          Activity

            People

              lehmi Andreas Lehmkühler
              tboehme Timo Boehme
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: