Skip to content

Conversation

@valerybokov
Copy link

The PDFStreamParser has a close method. Should it be closed outside or the close method should be protected (private)?

@lehmi
Copy link
Contributor

lehmi commented Oct 16, 2025

The parser is closed in org.apache.pdfbox.pdfparser.PDFStreamParser.parseNextToken() once the end is reached.

I'm not sure if I like that behaviour as it isn't transparent to the user .... maybe we should refactor that first.

@valerybokov
Copy link
Author

The parser is closed in org.apache.pdfbox.pdfparser.PDFStreamParser.parseNextToken() once the end is reached.

I'm not sure if I like that behaviour as it isn't transparent to the user .... maybe we should refactor that first.

So why isn't it protected (PDFStreamParser.close)?

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