Examples

Form Flattening in a PDF (.NET Core/Framework)

Form Flattening in a PDF using DynamicPDF Core Suite is straightforward.

How to Accomplish Form Flattening in C#

The following steps and sample code illustrate Form Flattening in a PDF using DynamicPDF Core Suite.

Steps for Form Flattening in a PDF

  1. Create a MergeDocument object with the desired PDF.
  2. Set the output property to Flatten.
  3. Save the PDF document.

Sample Code - C#

MergeDocument document = new MergeDocument( "output.pdf" );
document.Form.Output = FormOutput.Flatten;
document.Draw( "output.pdf" );

How to Accomplish Field Level Flattening in C#

The following steps and sample code illustrates how to use Field Level Flattening in a PDF using DynamicPDF Core Suite.

Steps for Field Level Flattening in PDF

  1. Create a MergeDocument object with the desired PDF.
  2. Set the output property to Flatten for the desired field.
  3. Save the PDF document.

Sample Code - C#

MergeDocument document = new MergeDocument( "output.pdf" );
document.Form.Fields[0].Output = FormFieldOoutput.Flatten;
document.Draw( "output.pdf" );

GitHub Project

Clone or view the example project at GitHub. This example code is contained in the Examples/FormFlatteningExample.cs file.

Clone or View Example Project on GitHub

Getting Started

NuGet Package

DynamicPDF Core Suite is available on NuGet and is part of the ceTe.DynamicPDF.CoreSuite.NET package. The easiest way to install the package is by using the Visual Studio Package Manager. But you can also download the package directly from NuGet.

NuGet Package ID: ceTe.DynamicPDF.CoreSuite.NET

DynamicPDF Core Suite Information

More information can be found on the DynamicPDF Core Suite website.

Available on Other Platforms

DynamicPDF Core Suite is also available for the Java and COM/ActiveX platforms. Refer to the respective product pages for more details.

Why Choose DynamicPDF?

  • Transparent Pricing
  • Lots of Features
  • Easy to Use
  • Great Support
  • Efficient Performance
  • Product Maturity (Over 22 Years)
  • Free Evaluation
  • .NET Core Support (Most Products)
  • Flexible Licensing

We’re Not The Only Ones That Think We’re Great!