DynaPDF Manual - Page 85

Previous Page 84   Index   Next Page 86

Incremental Updates
Page 85 of 874
If no changes were made, CloseFile() creates just a copy of the original file. It is usually best to
maintain a variable like Altered to determine whether something was changed.
Damaged PDF files
PDF files contain sometimes damages which are normally automatically repaired by DynaPDF.
However, since the existing file structure cannot be changed by an incremental update, nothing
can be repaired in this case.
This circumstance can lead to issues since not every PDF file that can be read by DynaPDF is
readable by other PDF libraries or PDF viewers.
Since DynaPDF does not restrict the processing of damaged PDF files, you can decide by
yourself whether incremental updates should be enabled for damaged PDF files ot not.
To check whether the file was opened in repair in mode call GetInRepairMode() after
OpenImportFile() or OpenImportBuffer().
Possible errors
As described at CreateSignatureField(), a form can be locked after signing with a Javascript
action. Since DynaPDF does not contain a Javascript interpreter, such actions are not considered
yet.
Signing a locked form is not allowed and causes error messages when opening such a file with
Adobes Acrobat or Reader.
 

Previous topic: Incremental updates in practice

Next topic: PDF/A and PDF/X Compatibility, PDF/X