[
https://issues.apache.org/jira/browse/PDFBOX-2911?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14648083#comment-14648083
]
Andreas Lehmkühler commented on PDFBOX-2911:
--------------------------------------------
IMHO there are two possible solutions:
- close all streams after merging as proposed on SO
- collect all FileInputStreams created within addSource and close them after
merging
> Merge does not close input streams
> ----------------------------------
>
> Key: PDFBOX-2911
> URL: https://issues.apache.org/jira/browse/PDFBOX-2911
> Project: PDFBox
> Issue Type: Bug
> Components: Utilities
> Affects Versions: 1.8.10, 1.8.11, 2.0.0
> Reporter: Tilman Hausherr
> Fix For: 1.8.11, 2.0.0
>
>
> As explained in the linked SO post: merge closes the source documents, but
> not the source streams.
> One can call addSource() with a File object and then there would be no way
> for the caller to close the inputstream, so that would be a bug for sure. Not
> yet sure what to do when called with streams.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]