![]() PdfTextBoxField textBoxField1 = new PdfTextBoxField ( page, "Name" ) textBoxField1. Black, new PointF ( 10, 20 )) //Create a text box field for the name. Black, new PointF ( 250, 0 )) font = new PdfStandardFont ( PdfFontFamily. DrawString ( "Job Application", font, PdfBrushes. PdfFont font = new PdfStandardFont ( PdfFontFamily. PdfDocument document = new PdfDocument () //Add a new page to the PDF document. The following code example shows how to create a simple form in a PDF document using C#. Let’s create a simple form with a text box and radio button fields in a PDF document:ġ.First, create a new PDF document using the PdfDocument class.Ģ.Add a new blank page using the PdfPage class.ģ.Create text box fields to collect the name, email address, and phone number using the PdfTextBoxField class.Ĥ.Then, create the radio button fields for gender selection using the PdfRadioButtonListField class and add the list items using the PdfRadioButtonListItem class.ĥ.Finally, save the PDF document using the Save method. You can include text boxes, combo boxes, radio buttons, list boxes, checkboxes, signature fields, buttons, and more in the PDF form. ![]() ![]() NET PDF Library allows users to easily create forms (Acroforms) in PDF documents with various form fields. Utilize JavaScript actions in PDF forms.Restrict editing capability of form fields.Create a signature field and sign a PDF.This article will explore several use cases of PDF forms and how they can be implemented using the Syncfusion. NET PDF Library provides comprehensive support for creating, customizing, and managing form fields in PDF documents. They can also be saved and shared electronically, making them convenient for individuals and organizations. These forms are popular because they are easy to use and can be filled out electronically, reducing the need for paper and manual data entry. PDF forms allow users to input and submit data in a structured format.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |