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