Hi, This is rather advanced stuff.
You need to save the file, reload it, then modify the COSDictionary objects you want, and pass these objects as a list as the second parameter to "saveIncremental()".
There is no example, but it is used in the example build tests. In the example subproject of the source code download, look for TestCreateSignature.java and then for the "testSaveIncrementalAfterSign" method.
This one changes a field content and this change is saved incrementally. Tilman Am 12.07.2022 um 14:53 schrieb mathieu fabre:
Hi, I am new to PDFBox and I would like to create a PDF from scratch and then modify it multiple times, but I would like to keep all previous versions of the file. I sawon the code that there is a saveIncremental method but I don't know how to use it. I don't find any example on internet, and every time I am searching for incremental update, I see also some other terms like signature... Could you help me please ? Thanks Best Regards,
--------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org For additional commands, e-mail: users-h...@pdfbox.apache.org