HTML
JPG
PDF
XML
DOCX
PDF
Create PDF Forms in .NET SDK
Add Form Fields to a PDF Document on .NET apps to create Fillable document.
Get StartedHow to create an AcroForm via Cloud .NET SDK
In order to create an AcroForm via Cloud .NET SDK , we’ll use Aspose.PDF Cloud .NET SDK This Cloud SDK allows you to easily build cloud-based PDF creator, editor & converter apps in C#, ASP.NET, or other .NET languages for various cloud platforms. Open NuGet package manager, search for Aspose.PDF Cloud and install. You may also use the following command from the Package Manager Console.
Package Manager Console Command
PM> Install-Package Aspose.Pdf-Cloud
Steps to create AcroForms via .NET SDK
Aspose.PDF Cloud developers can easily load & create acroforms in PDF in just a few lines of code.
- Create a new Configuration object with your Application Secret and Key
- Create an object to connect to the Cloud API
- Upload your document file
- Perform the creating
- Download the result
This sample code shows creating an AcroForms in PDF documents
public static void AddFormField()
{
const string localImageFileName = @"C:\Samples\StudentInfoFormElectronic.pdf";
const string storageFileName = "StudentInfoFormElectronic.pdf";
// Get your AppSid and AppSecret from http://dashboard.aspose.cloud (free registration required).
var pdfApi = new PdfApi(AppSecret, AppSid);
var filesOnStorage = pdfApi.GetFilesList("");
if (filesOnStorage.Value.All(f => f.Name != storageFileName))
{
using var file = File.OpenRead(localImageFileName);
var uploadResult = pdfApi.UploadFile(storageFileName, file);
Console.WriteLine(uploadResult.Uploaded[0]);
}
var textBoxField = new TextBoxField(PageIndex: 1)
{
PartialName = "Email",
Rect = new Rectangle(100, 100, 180, 120),
Value = "aspose-pdf-cloud@example.com",
Border = new Border(Width: 5, Dash: new Dash(1, 1))
};
var response = pdfApi.PutTextBoxField(storageFileName, "Email", textBoxField);
Console.WriteLine(response.Status);
}