Skip to content

Conversation

@valerybokov
Copy link

No description provided.

@THausherr
Copy link
Contributor

Thanks but both are closed when done (see parameter description in javadoc).

@valerybokov
Copy link
Author

valerybokov commented Nov 18, 2025

Thanks but both are closed when done (see parameter description in javadoc).

Okay. I see where a stream to load font is closed.
I see there is written for document.saveIncremental method the comment "It will be closed when done". But I do not see where this stream is closed in fact.

@valerybokov
Copy link
Author

I checked all cases for PDDocument.saveIncremental method. For each case the stream was closed outside.

@THausherr
Copy link
Contributor

Thank you, I see that this was changed in https://issues.apache.org/jira/browse/PDFBOX-4321 , however the javadoc and the test weren't all fixed, I'll do that.

@valerybokov valerybokov deleted the close-streams-in-TestCOSIncrement branch November 18, 2025 14:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants