Removing All Form Fields
Removing the form fields along with all of the form field values can also be done. The following example demonstrates how to merge in an existing PDF document while completely stripping off all of the form fields and their respective values:
MergeOptions mergeOptions = new MergeOptions();
mergeOptions.FormFields = false;
MergeDocument document = new MergeDocument( @"C:\MyDocument.pdf", mergeOptions );
document.Draw( @"C:\MyDocument.pdf" );
Dim mergeOptions As New MergeOptions()
mergeOptions.FormFields = False
Dim document As New MergeDocument("C:\MyDocument.pdf", mergeOptions)
document.Draw("C:\MyDocument.pdf")