Annotations + incrementalSave + specific PDF (pdfbox2) = no annotation displayed

2023-10-30 Thread Frédéric Ravetier
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 wh

Re: Annotations + incrementalSave + specific PDF (pdfbox2) = no annotation displayed

2023-10-30 Thread Tilman Hausherr
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 r

Re: Annotations + incrementalSave + specific PDF (pdfbox2) = no annotation displayed

2023-10-30 Thread Frédéric Ravetier
Thanks for your answer Tilman, * I was using 2.0.29 * this code is working well with all the pdf I used until now * I did a test using pdfbox3 and it works but my code using pdf3 is not production ready :( I prepare a test class that you can use https://drive.google.com/file/d/1Nqkck4VZXZXjFxEY9X