Reading Form Fields in PDF (.NET Core/Framework)

Reading Form Fields in PDF using DynamicPDF Merger is simple and easy.

How to read Form Fields in C#

Below are the steps and sample code to read Form Fields in PDF using the DynamicPDF Merger product.

Steps for reading Form Fields in PDF

  1. Create a MergeDocument object with the desired pdf.
  2. Set the Acro Form field values to local variables.
  3. Save the PDF document.

Sample Code - C#

MergeDocument document = new MergeDocument( "output.pdf" );
string textBox1Value = document.Form.Fields["TextBox1"].Value;
string checkBox1Value = document.Form.Fields["CheckBox1"].Value;
string comboBox1Value = document.Form.Fields["ComboBox1"].Value;
string radioButton1Value = document.Form.Fields["RadioButton1"].Value;
string listBox1Value = document.Form.Fields["ListBox1"].Value;  

Getting Started

NuGet Package

DynamicPDF Merger is available on NuGet and is part of the ceTe.DynamicPDF.CoreSuite.NET package. The Core Suite package includes Generator, Merger and ReportWriter.

NuGet Package ID: ceTe.DynamicPDF.CoreSuite.NET

DynamicPDF Merger Information

More information can be found here:

Available in Other Platforms

DynamicPDF Merger PDF Library is available for Java and COM/AxtiveX 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 18 Years)
  • Free Evaluation
  • .NET Core Support (Most Products)
  • Flexible Licensing

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