1. Home
  2. Foxit SDK .NET
  3. How to flatten an individual form field using Foxit PDF .NET SDKs

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
document.Draw(@"C:\AcroForm_Flattened.pdf");

Using C#:

MergeDocument document = new MergeDocument(@"C:\AcroForm.pdf");
document.Form.Fields[0].Output = FormFieldOoutput.Flatten;
document.Draw(@"C:\AcroForm_Flattened.pdf");
Updated on October 7, 2019

Was this article helpful?

Related Articles

Ready to try Foxit PDF SDK?
Click the link below to download your trial
Free Trial