TX Text Control .NET for WPF

PDF Forms

Topic

A PDF form in a WPF application goes out and comes back: it starts as a document with form fields in the TextControl of a window, becomes a fillable PDF when it is saved, returns filled in from a PDF reader and ends up as data in your application. When the process is complete, the values can be fixed in a flattened PDF that is signed or archived.

Create a PDF Form in Getting Started builds the first fillable PDF. Users insert form fields with the ribbon, as Form Fields and Conditional Instructions describes, and the form field classes are covered in Forms and Conditional Instructions. Form fields require the Enterprise edition; see Editions and Feature Availability.

How a PDF Form Travels

  1. Design. Text boxes, check boxes, drop-down lists, combo boxes and date fields are inserted in code, with the Form Fields tab of the WPF ribbon or by loading a Word form.

  2. Create. StreamType.AdobePDF saves the form fields as AcroForm fields, the interactive fields of PDF, with their names and values.

  3. Fill in. Recipients fill in the form in Adobe Acrobat Reader, Google Chrome or another PDF reader:

    A PDF form in Adobe Acrobat Reader with a filled text field for the company name and an open drop-down list offering United States, Germany and Italy.

  4. Read. Forms.GetAcroFormFields returns the fields of the returned PDF with their values.

  5. Finalize. The values go back into your document of the form, the fields are flattened and the result is signed or archived.

The fields of an existing PDF are read, but TX Text Control doesn't write new values into it: a PDF with changed values is always saved from a document.

Find the Right Page

If you want toRead
Know how form fields become PDF fields, convert a Word form and check the saved formCreating AcroForms
Read the values of a filled PDF form and show them in the windowReading Form Fields and Values
Protect a fillable form with permissions or fix the values by flatteningExporting Interactive and Flattened Forms
Let users fill in the form inside the windowFill Out the Form in the Editor

Where to Start

  1. Create a PDF Form, if you haven't saved a form as PDF yet.
  2. Creating AcroForms: what ends up in the PDF.
  3. Reading Form Fields and Values: get the data back.
  4. Exporting Interactive and Flattened Forms: finish the document.