Create a Fillable PDF with C# REST API

This quick tutorial guides you on how to create a fillable PDF with C# REST API. You will learn to automatically create PDF fillable form with C# RESTful Service using the .NET-based Cloud SDK. You will learn to set various properties and customize the form field before adding it to the PDF.

Prerequisite

Steps to Build a Fillable PDF with C# Low Code API

  1. Configure the PdfApi object by setting the client ID and secret to create the fillable PDF
  2. Create a field and set its parameters
  3. Create a rectangle to place the field on the PDF page and set to the field
  4. Create a list of selected items and set the field type
  5. Upload the source PDF file into the cloud storage by assigning a name for adding a field
  6. Call the PostCreateField() method to insert the field on the specified page
  7. Check the API response and save the resultant PDF file on the disk

These steps summarize how to create a fillable PDF with C# .NET-based API. Create the PdfAp object, create a field, and set parameters such as default value, name, rectangle for size and position, and field type. Finally, load the source PDF file, add the PostCreateField on the defined page, and save the output PDF file.

Code to Generate Editable PDF with C# REST API

This code demonstrates how to create typeable PDF with C# Low Code API. You can add the edit box by setting the FieldType property to Text or other types if a different control is to be added to the form. You can add a link to the field by using the Link class object and setting it as a property in the field.

This article has guided us to generate fillable PDF with C# REST Interface. If you want to update PDF file properties, refer to the article on Update PDF Metadata with C# REST API.

 English