Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.0.0
-
None
-
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
- is related to
-
PDFBOX-3359 Drawing to Graphics2D / ScratchFileBuffer not closed
- Closed
-
PDFBOX-4396 Memory leak due to soft reference caching
- Closed