We are looking to save a pdf file incrementally using pdfium. We noticed a FPDF_INCREMENTAL flag defined in fpdf_save.h and tried to use it as a parameter to FPDF_SaveAsCopy.
Unfortunately for us that didn't work as expected. Although it appended an additional trailer object to the original content, it did not append the modified object streams.
As a result the document ended up being corrupt.
My questions are:
- Are we right in assuming that FPDF_INCREMENTAL is for incremental saving (for a write-up on incremental update click here) ?
- Are there any additional steps that need to be done to get this working?
- Is this a bug ?
Sample attachments:
- Original document
- Document saved incrementally using Adobe
- Corrupt document saved using pdfium.
Kind Regards
Chery