We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Syncfusion Feedback

Syncfusion is trusted by the world’s leading companies

Syncfusion Trusted Companies

Overview

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.

How to create PDF forms in C#

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);
    }
}

Key functions of PDF forms

Explore versatile PDF form functionalities that streamline data collection, enhance user interactivity, and enable dynamic form management.

Create forms in .NET PDF.

Create forms

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 form fields in .NET PDF.

Fill form fields

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.

Read and modify form fields in .NET PDF.

Read and modify form fields

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/export forms data in .NET PDF.

Import/export forms data

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 in .NET PDF.

Flatten form fields

Flatten form fields effortlessly. This process transforms interactive elements into static content within your PDF documents, simplifying their presentation and ensuring compatibility across platforms.

Apply actions to form fields in .NET PDF.

Apply actions to form fields

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.

Explore resources for PDF forms

Discover valuable resources from our blog and knowledge base on creating, filling, and flattening PDF forms.

Fill PDF forms from a database using C

Knowledge base

Fill PDF forms from a database using C#

Fill PDF forms and sign a PDF document

Knowledge base

Fill PDF forms and sign a PDF document

Auto resizing of text box fields’ text

Documentation

Auto resizing of text box fields’ text

Create a form with complex script language

Documentation

Create a form with complex script language

Add form fields to an existing PDF document

Knowledge base

Add form fields to an existing PDF document

Retain extended rights of a PDF form

Demo

Retain extended rights of a PDF form

Syncfusion .NET PDF Library Resources

Explore these resources for comprehensive guides, knowledge base articles, insightful blogs, and ebooks.

Struggling to decide on the right product?

Our comprehensive competitor comparison of PDF framework will guide you to the perfect choice.

tick-mark 20+ Conversions support
tick-mark 50+ interactive demos
tick-mark 1.7M+ downloads
competitive-banner-FT-image

Frequently Asked Questions

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.

Our Customers Love Us

Having an excellent set of tools and a great support team, Syncfusion reduces customers’ development time.
Here are some of their experiences.

Rated by users across the globe

Want to create, view, and edit PDF files in C# or VB.NET?

Start a free 30-day evaluation today!
DOWNLOAD FREE TRIAL

No credit card required.

Mobile Free Evaluation Section

Awards

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.

Scroll up icon