The Syncfusion .NET PDF Library provides comprehensive support for creating, customizing, and managing form fields in PDF documents. PDF fillable forms are electronic documents crafted to gather user information systematically. These versatile forms can incorporate a wide range of form elements, including text boxes, checkboxes, radio buttons, dropdown menus, and more.
This feature works seamlessly across platforms, including Windows, macOS, Linux, Android, and iOS, through any .NET-based application, such as ASP.NET Core, ASP.NET MVC, Blazor, .NET MAUI, Xamarin, WinForms, WPF, and WinUI.
The following code demonstrates how to create a simple PDF form.
using Syncfusion.Drawing;
using Syncfusion.Pdf;
using Syncfusion.Pdf.Graphics;
using Syncfusion.Pdf.Interactive;
// Create a new PDF document
using (PdfDocument pdfDocument = new PdfDocument())
{
// Add a new page to the PDF document
PdfPage pdfPage = pdfDocument.Pages.Add();
// Set the standard font
PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 16);
// Draw the string "Job Application"
pdfPage.Graphics.DrawString("Job Application", font, PdfBrushes.Black, new PointF(250, 0));
// Change the font size for the form fields
font = new PdfStandardFont(PdfFontFamily.Helvetica, 12);
// Draw the string "Name"
pdfPage.Graphics.DrawString("Name", font, PdfBrushes.Black, new PointF(10, 20));
// Create a text box field for name
PdfTextBoxField nameField = new PdfTextBoxField(pdfPage, "Name");
nameField.Bounds = new RectangleF(10, 40, 200, 20);
nameField.ToolTip = "Name";
pdfDocument.Form.Fields.Add(nameField);
// Draw the string "Email address"
pdfPage.Graphics.DrawString("Email address", font, PdfBrushes.Black, new PointF(10, 80));
// Create a text box field for email address
PdfTextBoxField emailField = new PdfTextBoxField(pdfPage, "Email address");
emailField.Bounds = new RectangleF(10, 100, 200, 20);
emailField.ToolTip = "Email address";
pdfDocument.Form.Fields.Add(emailField);
// Save the PDF document in to a file stream
using (FileStream outputFileSteam = new FileStream("Output.pdf", FileMode.Create))
{
pdfDocument.Save(outputFileSteam);
}
}
Explore versatile PDF form functionalities that streamline data collection, enhance user interactivity, and enable dynamic form management.
Simplify your workflow with the Syncfusion PDF Library, with which you can easily add form fields to your PDFs. Our intuitive APIs enable you to create text boxes, checkboxes, radio buttons, dropdown menus, and signature fields seamlessly.
Fill in form fields with ease. Whether you’re completing user data, updating existing information, or automating form filling, our tools simplify the process. Streamline your workflow by effortlessly populating form fields, ensuring your PDF documents are completed accurately and efficiently.
Easily read and edit form fields in your PDF documents. Whether you’re retrieving user input, updating existing data, or adjusting form field properties, our intuitive APIs ensure seamless interaction with PDF forms.
Import and export form data in FDF, XFDF, JSON, and XML formats. Simplify your workflow by managing form data, ensuring compatibility and efficiency across your systems.
Flatten form fields effortlessly. This process transforms interactive elements into static content within your PDF documents, simplifying their presentation and ensuring compatibility across platforms.
Elevate your PDF forms with Syncfusion PDF Library by adding essential actions to form fields. Seamlessly integrate submit, reset, and JavaScript actions to create interactive and functional forms that respond to user inputs and streamline workflows.
Discover valuable resources from our blog and knowledge base on creating, filling, and flattening PDF forms.
Explore these resources for comprehensive guides, knowledge base articles, insightful blogs, and ebooks.
Product Updates
Technical Support
PDF forms, also known as fillable forms or interactive forms, are documents in PDF format that include fields for users to enter data in. These include various types of fields, like text boxes, checkboxes, radio buttons, and dropdown menus, allowing for user input directly within the document.
You can create PDF forms either programmatically using the Syncfusion PDF Library or interactively using the PDF Viewer’s form designer.
PDF forms can be secured using methods such as password protection and digital signatures to ensure the integrity and confidentiality of the information provided.
You can fill out PDF forms either programmatically using the Syncfusion PDF Library or interactively using the PDF Viewer.
Yes, you can digitally sign a PDF form using the Syncfusion PDF Library.
Yes, you can bind data between the form fields of a PDF document and a database using import/export form data APIs in the Syncfusion .NET PDF Library.
Greatness—it’s one thing to say you have it, but it means more when others recognize it. Syncfusion is proud to hold the following industry awards.