Sorry, ignore previous answer.
It's a good practice to use try-with-resources everywhere to avoid
potential memory leaks. I don't know if you will get any.
Tilman
On 13.06.2023 04:29, Tilman Hausherr wrote:
On 12.06.2023 19:32, Masseau Olivier wrote:
Do I really need to close the content stream in the finally block or
closing the document is enough ?
Depends if you want to end up with a blank page or not
https://pdfbox.apache.org/2.0/faq.html#i'm-creating-a-pdf-but-my-page-is-empty.-why%3F
if you don't close before saving, you'll do.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: users-h...@pdfbox.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: users-h...@pdfbox.apache.org