# X19 Sneak Peek: Processing AcroForm Fields in Adobe PDF Documents

> TX Text Control X19 will introduce a new namespace that contains classes to process PDF documents. A new feature allows the extraction of AcroForm fields from existing Adobe PDF documents.

- **Author:** Bjoern Meyer
- **Published:** 2020-10-29
- **Modified:** 2025-11-16
- **Description:** TX Text Control X19 will introduce a new namespace that contains classes to process PDF documents. A new feature allows the extraction of AcroForm fields from existing Adobe PDF documents.
- **2 min read** (301 words)
- **Tags:**
  - AcroForms
  - ASP.NET
  - PDF
  - Windows Forms
  - WPF
- **Web URL:** https://www.textcontrol.com/blog/2020/10/29/sneak-peek-processing-acroform-fields-from-adobe-pdf-documents/
- **LLMs URL:** https://www.textcontrol.com/blog/2020/10/29/sneak-peek-processing-acroform-fields-from-adobe-pdf-documents/llms.txt
- **LLMs-Full URL:** https://www.textcontrol.com/blog/2020/10/29/sneak-peek-processing-acroform-fields-from-adobe-pdf-documents/llms-full.txt

---

In TX Text Control X19, the *DocumentServer* will be extended with a new namespace: *TXTextControl.DocumentServer.PDF*. This namespace is the new home for PDF specific tasks that doesn't require a connected Text Control.

### Extracting Forms Data

Interactive forms in the Adobe PDF format are also known as AcroForm - the de-facto standard for PDF forms processing. The forms can be created and exported using TX Text Control, so that end-users can fill-out these form fields in Acrobat Reader or other applications.

A new feature of TX Text Control X19 allows the easy extraction of form field data to collect results from completed documents.

 

### Import FormField Objects

The following code shows how to get all AcroForm fields from a physical PDF document using the *GetAcroFormFields* method that accepts file names and byte arrays:

```
FormField[] acroForms = 
    TXTextControl.DocumentServer.PDF.Forms.GetAcroFormFields("form.pdf");

foreach (FormField field in acroForms)
{ 
    switch (field)
    {
        case TXTextControl.DocumentServer.PDF.AcroForms.FormTextField textField:
            Console.WriteLine(textField.Value);
            break;

        case TXTextControl.DocumentServer.PDF.AcroForms.FormCheckBox checkBoxField:
            Console.WriteLine(checkBoxField.IsChecked);
            break;

        case TXTextControl.DocumentServer.PDF.AcroForms.FormComboBox comboBoxField:
            foreach(var item in comboBoxField.Options)
                Console.WriteLine(item);
            break;
    }
}
```

The return value is an array of *FormField* objects that contains all fields of the document:

![Importing AcroForms fields](https://s1-www.textcontrol.com/assets/dist/blog/2020/10/29/a/assets/code.webp "Importing AcroForms fields")

The above code shows how to loop through this array and to cast those types in a switch/case statement to get the proper values from those fields.

This new feature allows you to support the complete PDF forms workflow where TX Text Control can be used to:

- Create PDF fillable form documents.
- Share those documents.
- Collect and analyze completed forms.

Stay tuned for more innovative document processing features of TX Text Control X19!

---

## About Bjoern Meyer

As CEO, Bjoern is the visionary behind our strategic direction and business development, bridging the gap between our customers and engineering teams. His deep passion for coding and web technologies drives the creation of innovative products. If you're at a tech conference, be sure to stop by our booth - you'll most likely meet Bjoern in person. With an advanced graduate degree (Dipl. Inf.) in Computer Science, specializing in AI, from the University of Bremen, Bjoern brings significant expertise to his role. In his spare time, Bjoern enjoys running, paragliding, mountain biking, and playing the piano.

- [LinkedIn](https://www.linkedin.com/in/bjoernmeyer/)
- [X](https://x.com/txbjoern)
- [GitHub](https://github.com/bjoerntx)

---

## Series

- [X19 Sneak Peek: Table of Contents](https://www.textcontrol.com/blog/2020/10/15/x19-sneak-peek-table-of-contents/llms.txt)
- [X19 Sneak Peek: Embedded Files in Adobe PDF Documents](https://www.textcontrol.com/blog/2020/10/16/x19-sneak-peek-embedded-files-in-pdf/llms.txt)
- [X19 Sneak Peek: Integrated Barcode Support](https://www.textcontrol.com/blog/2020/10/19/x19-sneak-peek-integrated-barcode-support/llms.txt)
- **X19 Sneak Peek: Processing AcroForm Fields in Adobe PDF Documents** (this article)
- [X19 Sneak Peek: Storing Document Revisions in PDF/A-3b](https://www.textcontrol.com/blog/2020/11/03/x19-sneak-peek-saving-document-versions-in-pdfa-3b/llms.txt)
- [X19 Sneak Peek: Validating ZUGFeRD / Factur-X Invoices with TX Text Control](https://www.textcontrol.com/blog/2020/11/10/x19-sneak-peek-validating-zugferd-factur-x-invoices-with-tx-text-control/llms.txt)
- [X19 Sneak Peek: Changes for Keyboard Layout and Spell Checking](https://www.textcontrol.com/blog/2020/11/12/x19-sneak-peek-changes-for-keyboard-layout-and-spell-checking/llms.txt)
- [X19 Sneak Peek: Manipulating MergeBlockInfo Objects](https://www.textcontrol.com/blog/2020/11/17/x19-sneak-peek-manipulating-mergeblockinfo-objects/llms.txt)

---

## Related Posts

- [Extract Text and Data from PDF Documents in C#](https://www.textcontrol.com/blog/2022/06/16/extract-text-and-data-from-pdf-documents-in-csharp/llms.txt)
- [Creating PDF Files using TX Text Control .NET in C#](https://www.textcontrol.com/blog/2022/05/24/creating-pdf-files-using-tx-text-control-dotnet/llms.txt)
- [Generating Interactive PDF Forms by Injecting JavaScript](https://www.textcontrol.com/blog/2022/03/31/generating-interactive-pdf-forms-by-injecting-javascript/llms.txt)
- [Form Field Handling in PDF Documents](https://www.textcontrol.com/blog/2022/01/03/form-field-handling-in-pdf-documents/llms.txt)
- [Creating ZUGFeRD Compliant PDF Invoices in C#](https://www.textcontrol.com/blog/2021/02/03/creating-zugferd-compliant-pdf-invoices-in-csharp/llms.txt)
- [Create and Modify Adobe PDF Documents within your .NET Application](https://www.textcontrol.com/blog/2019/05/27/create-and-modify-adobe-pdf-documents/llms.txt)
- [How to create Adobe PDF files in .NET](https://www.textcontrol.com/blog/2018/08/11/how-to-create-pdf-files-in-net/llms.txt)
- [TX Text Control 34.0 SP2 is Now Available: What's New in the Latest Version](https://www.textcontrol.com/blog/2026/02/18/tx-text-control-34-0-sp2-is-now-available/llms.txt)
- [TX Text Control 34.0 SP1 is Now Available: What's New in the Latest Version](https://www.textcontrol.com/blog/2025/12/03/tx-text-control-34-0-sp1-is-now-available/llms.txt)
- [Introducing TX Text Control 34.0: Your Next Leap in Document Processing](https://www.textcontrol.com/blog/2025/11/10/introducing-tx-text-control-34-0-your-next-leap-in-document-processing/llms.txt)
- [Sneak Peek: TX Text Control 34.0 Coming November 2025](https://www.textcontrol.com/blog/2025/10/02/sneak-peek-tx-text-control-34-0-coming-november-2025/llms.txt)
- [TX Text Control 33.0 SP3 is Now Available: What's New in the Latest Version](https://www.textcontrol.com/blog/2025/08/14/tx-text-control-33-0-sp3-is-now-available/llms.txt)
- [TX Text Control 33.0 SP2 is Now Available: What's New in the Latest Version](https://www.textcontrol.com/blog/2025/06/18/tx-text-control-33-0-sp2-is-now-available/llms.txt)
- [Document Lifecycle Optimization: Leveraging TX Text Control's Internal Format](https://www.textcontrol.com/blog/2025/05/16/document-lifecycle-optimization-leveraging-tx-text-controls-internal-format/llms.txt)
- [Expert Implementation Services for Legacy System Modernization](https://www.textcontrol.com/blog/2025/05/07/expert-implementation-services-for-legacy-system-modernization/llms.txt)
- [Service Pack Releases: What's New in TX Text Control 33.0 SP1 and 32.0 SP5](https://www.textcontrol.com/blog/2025/05/07/service-pack-releases-whats-new-in-tx-text-control-33-0-sp1-and-32-0-sp5/llms.txt)
- [Top 5 Real-World Applications for TX Text Control Document Processing Libraries](https://www.textcontrol.com/blog/2025/04/01/top-5-real-world-applications-for-tx-text-control-document-processing-libraries/llms.txt)
- [DWX Developer Week Moves to Mannheim - And Text Control Is on Board!](https://www.textcontrol.com/blog/2025/03/19/dwx-developer-week-moves-to-mannheim-and-tx-text-control-is-on-board/llms.txt)
- [The Wait is Over: TX Text Control for Linux is Officially Here](https://www.textcontrol.com/blog/2025/03/12/the-wait-is-over-tx-text-control-for-linux-is-officially-here/llms.txt)
- [Full .NET 9 Support in Text Control .NET Components for ASP.NET Core, Windows Forms, and WPF](https://www.textcontrol.com/blog/2024/11/11/full-net-9-support-in-text-control-net-components-for-asp-net-core-windows-forms-and-wpf/llms.txt)
- [Toggle Field Codes in TX Text Control](https://www.textcontrol.com/blog/2024/11/07/toggle-field-codes-in-tx-text-control/llms.txt)
- [TX Text Control 32.0 Service Pack 4 Released](https://www.textcontrol.com/blog/2024/09/02/tx-text-control-32-0-service-pack-4-released/llms.txt)
- [Service Pack 3: MailMerge Supports SVG Images](https://www.textcontrol.com/blog/2024/04/29/service-pack-3-mailmerge-supports-svg-images/llms.txt)
- [TX Text Control 32.0 Service Pack 3 Released](https://www.textcontrol.com/blog/2024/04/29/tx-text-control-32-0-service-pack-3-released/llms.txt)
- [Electronic Invoicing will Become Mandatory in Germany in 2025](https://www.textcontrol.com/blog/2024/04/10/electronic-invoicing-will-become-mandatory-in-germany-in-2025/llms.txt)
