Foxit SDK .NET

How to flatten an individual form field using Foxit PDF .NET SDKs

The following examples demonstrates how to flatten an individual form field within a PDF:

Using Visual Basic:

Dim document As MergeDocument = New MergeDocument("C:\AcroForm.pdf")
document.Form.Fields(0).Output = FormFieldOutput.Flatten

Using C#:

MergeDocument document = new MergeDocument(@"C:\AcroForm.pdf");
document.Form.Fields[0].Output = FormFieldOoutput.Flatten;

Updated on March 7, 2019

Was this article helpful?
Thanks for your feedback. If you have a comment on how to improve the article, you can write it here: