You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@pdfbox.apache.org by mathieu fabre <ma...@gmail.com> on 2022/07/12 12:53:07 UTC
incremental update
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,
--
Mathieu FABRE
Re: incremental update
Posted by Tilman Hausherr <TH...@t-online.de>.
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-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: users-help@pdfbox.apache.org