Products Technologies Demo Docs Blog Support Company

Importing Form Data from PDF Documents Exported from Chrome

Google Chrome 85 supports the completion and export of PDF documents with AcroForm form fields. When data is typed into these fields, the completed document can be exported.

Importing Form Data from PDF Documents Exported from Chrome

In older versions of Google Chrome, fillable PDF forms can be completed and printed, but not saved. The new UI lets you choose whether to download the original or edited version of a PDF. Looking at the effort before and specifically during the pandemic to transform business processes to "online only", this step makes a lot of sense as Google Chrome is by far the most used browser, accounting for more than half of all web traffic.

TX Text Control can be used to create Adobe PDF documents with valid AcroForm fields that can be completed in PDF viewers such as Acrobat Reader and now Google Chrome. Such form documents can be either created programmatically or using the visual document editor that is available for Angular, ASP.NET, Windows Forms and WPF.

The following screenshot shows the TX Text Control UI to create documents with form fields that can be exported as an Adobe PDF.

Form fields in TX Text Control

When this document is opened in Google Chrome, the form fields are nicely rendered and can be completed directly in the browser:

Form fields in TX Text Control

When clicking the Download button in the upper right corner, you can decide whether to download the document with your changes or without the changes:

Form fields in TX Text Control

After the document saved including the changes, this document could be loaded back into TX Text Control to extract the data. The following code shows how to retrieve the form fields from the exported document using the GetAcroFormFields method:

var fields = TXTextControl.DocumentServer.PDF.Forms.GetAcroFormFields("results.pdf");

The next two screenshots show the debugger in Visual Studio and shows that the user typed data is stored in the PDF that has been exported by Google Chrome.

Form fields in TX Text Control

Form fields in TX Text Control

Using TX Text Control, you can create these form documents, deploy and collect them to extract the user data.

Stay in the loop!

Subscribe to the newsletter to receive the latest updates.

Also See

This post references the following in the documentation:

  • TXTextControl.DocumentServer.PDF.Forms.GetAcroFormFields Method

ASP.NET

Integrate document processing into your applications to create documents such as PDFs and MS Word documents, including client-side document editing, viewing, and electronic signatures.

ASP.NET Core
Angular
Blazor
JavaScript
React
  • Angular
  • Blazor
  • React
  • JavaScript
  • ASP.NET MVC, ASP.NET Core, and WebForms

Learn more Trial token Download trial

Related Posts

AngularASP.NETAcroForms

Creating Adobe PDF Forms in C#

Interactive forms in an Adobe PDF document can be used to gather information from end-users. This article shows how to create those forms using TX Text Control in .NET applications using C#.


ASP.NETAcroFormsForms

How to Load and View PDF Documents in ASP.NET Core C#

A very typical task in business applications is to view PDF documents in web applications. This article describes how to use the TX Text Control Document Viewer to display PDF documents in ASP.NET…


ASP.NETAcroFormsForms

How to Create and Deploy PDF Forms in ASP.NET Core C#

TX Text Control can be used for the creation and editing of form fields in PDF documents. This article explains how to create a PDF form from scratch and how to deploy the form using the Document…


ASP.NETAcroFormsForm Fields

Healthcare Use Case: Digital Forms Workflow with Electronic Signatures

Forms play an important role in healthcare processes and offer a huge potential for automation and digital forms processing. This article and sample show how to use TX Text Control to streamline…


ASP.NETAcroFormsPDF

Auto-Generate HTML Forms from PDF AcroForms in C#

TX Text Control enables the automatic generation of HTML forms based on AcroForms in PDF documents. This sample shows how to utilize the PDF namespace of the DocumentServer to access form fields…