Hi,

The annotations are missing in the incremental part. My guess is that you didn't include it in the update. You've updated the document catalog but not the page. Read the javadoc of the saveIncremental() carefully. If you can't get it to work, please share the smallest possible code that reproduces the effect.

The current 2 version is 2.0.29.

However I'm also wondering whether you hit a bug, or rather a problem. The page tree has several levels so if you use the "classic" incremental save then there is no direct path from the catalog to the page.

Tilman

On 30.10.2023 13:57, Frédéric Ravetier wrote:
Hi,

I am using the same code and PDFbox2 to add annotations on PDF.
The annotations are not displayed and I think they are not in the final PDF
when I am using one specific PDF.
This is the PDF :
https://drive.google.com/file/d/1iyPlWZkU9SgPjUCCCI5_A190xAz8b4-5/view?usp=sharing

This is the PDF where I added annotation and save using incrementalSave :
https://drive.google.com/file/d/1jlkknjPtbofGuTqj4urLWfXjZt9CjH0d/view?usp=sharing

Do you have any ideas ? Do you need more information ?

Best regards,
Fred



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: users-h...@pdfbox.apache.org

Reply via email to