PDF Forms

You can create editable PDF documents with IronPDF as easily as a normal document. The PdfForm class is a collection of user-editable form fields within a PDF document. It can be implemented into your PDF render to make it a form or an editable document.

This example shows you how to create editable PDF forms in IronPDF.

PDFs with editable forms can be created from HTML simply by adding <form>, <input>, and <textarea> tags to the document parts.

The PdfDocument.Form.FindFormField method can be used to read and write the value of any form field. The field's name attribute is given to that field in your HTML.

The PdfDocument.Form object can be used in two ways:

  • Populating Default Values: This can be used to set a default value for form fields that will be displayed in PDF viewers like Adobe Reader.
  • Reading User Input: After the user fills in the form, the form fields can be accessed and the data read back into your application.

In the example above, we first import the IronPdf library and define the HTML structure of a simple form with input fields for first name and last name, radio buttons for gender, and checkboxes for medical conditions. Using the ChromePdfRenderer with CreatePdfFormsFromHtml enabled, we convert this HTML content into a PDF document.

The rendered PDF is first saved as "BasicForm.pdf". The PdfDocument.Form object is then used to access and manipulate the form fields - here we set values for the first name and last name fields. Finally, the populated document is saved as "FilledForm.pdf", allowing it to be stored or shared with embedded editable fields.

Learn to Edit PDF Forms with IronPDF How-To Guide

Ready to Get Started?
Nuget Downloads 20,296,129 | Version: 2026.7 just released
Still Scrolling Icon

Still Scrolling?

Want proof fast? PM > Install-Package IronPdf
run a sample watch your HTML become a PDF.