In this fast‑track tutorial you’ll discover how to create a fillable PDF with C# REST API. Leveraging the .NET‑based Cloud SDK, you’ll automatically generate a fillable PDF form via a C# RESTful service, set a variety of properties, and customize each form field before inserting it into the document.
Prerequisite
- Create an account API credentials
- Download Aspose.PDF Cloud SDK for Dotnet to create fillable PDF
- Setup C# project with the above SDK for adding a text field
Steps to Build a Fillable PDF with C# Low Code API
- Configure the PdfApi object by setting the client ID and secret to create the fillable PDF
- Create a field and set its parameters
- Create a rectangle to place the field on the PDF page and set to the field
- Create a list of selected items and set the field type
- Upload the source PDF file into the cloud storage by assigning a name for adding a field
- Call the PostCreateField() method to insert the field on the specified page
- 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. By setting the FieldType property to Text —or to any other supported type—you can add an editable textbox or another control to your form. To embed a hyperlink, simply create a Link object and assign it to the field’s Link property.
We’ve walked through generating fillable PDFs with the C# REST interface. Ready to tweak PDF properties? Dive into our next guide on Update PDF Metadata with C# REST API.