Hi Mohamed,
The earlier file version “1.3” or below does not support incremental updates and so we have always allowed the document to rewrite the entire file and it causes the first signature to become invalid when the second sign. However, we can overcome this issue by setting the file version to “1.4” or above and rewrite the entire file for an initial sign.
|
//Load PDF document
PdfLoadedDocument loadedDocument = new PdfLoadedDocument(file);
if ((loadedDocument.FileStructure.Version == PdfVersion.Version1_0 || loadedDocument.FileStructure.Version == PdfVersion.Version1_1 || loadedDocument.FileStructure.Version == PdfVersion.Version1_2 || loadedDocument.FileStructure.Version == PdfVersion.Version1_3))
{
loadedDocument.FileStructure.Version = PdfVersion.Version1_4; or above
loadedDocument.FileStructure.IncrementalUpdate = false;
}
|
Regards,
Gowthamraj K