We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Adding pages to a certified PDF file with DocMDPAccessPermissions.FillingInForms


Is it possible to add a page to a PDF-File which has been certified before?
Because currently the certification gets broken if i add an empty page, although AdobeReader mentioned at the CertificationField: “…and adding pages is allowed” …?
Take a look at the attached screenshot (German version).

More details:
I’m creating a PDF-Document with with the aspose components and in a second step i’m certifying the document and save it to a new file. As described in the documentaion: http://www.aspose.com/docs/display/pdfnet/Digitally+sign+PDF+file
(with the same access permission as in the doc.: “DocMDPAccessPermissions.FillingInForms”).

In a 3rd step im loading the Document from the fs and like to add an empty A4-Page at the end of the document by getting access permissions:
	if (pdfFileSignature.GetAccessPermissions() == Aspose.Pdf.InteractiveFeatures.Forms.DocMDPAccessPermissions.FillingInForms) // Get access permission //also at: http://www.aspose.com/docs/display/pdfnet/Digitally+sign+PDF+file
///Add an empty A4 page at the end of the Document
var emptyPage = sourcePDF.Pages.Add();
emptyPage.SetPageSize(597.6, 842.4); //A4 http://www.aspose.com/docs/display/pdfnet/Update+Page+Dimensions
Now if i save the document to the fs… the certification is broken, i would say corrupted (take a look at the attachment).
(Note: The certification is still valid if i sign the document multible times)

Thanks for any hint!

Hi Johannes,

Thanks for your inquiry. I am afraid it is expected behavior, editing PDF document invalidates the digital signed PDF. You may resign PDF document after editing or sign once after manipulating the PDF document.

We are sorry for the inconvenience caused.

Best Regards,