DEV Community

GroupDocs
GroupDocs

Posted on

2

Add form field esignatures in your .NET based PDF files

GroupDocs.Signature for .NET is a document esigning API for .NET platform supporting a whole host of extremely useful and advanced features across different types of web, desktop and mobile applications. Following code snippet demonstrates how application developers can insert checkbox form field signature in a PDF document on .NET platform.

// instantiate check-box form field signature
FormFieldSignature checkboxSignature = new PdfCheckboxFormFieldSignature("FieldCheckbox", true);
// instantiate options based on check-box form field signature
PdfFormFieldSignOptions checkboxOptions = new PdfFormFieldSignOptions(checkboxSignature)
{
HorizontalAlignment = HorizontalAlignment.Left,
VerticalAlignment = VerticalAlignment.Top,
Margin = new Padding(120, 20, 0, 0),
Height = 10,
Width = 10
};
// sign document
string signedPath = handler.Sign("02_pages.pdf", checkboxOptions,
new SaveOptions { OutputType = OutputType.String, OutputFileName = "Pdf_FormFields" });

Image of Quadratic

Python + AI + Spreadsheet

Chat with your data and get insights in seconds with the all-in-one spreadsheet that connects to your data, supports code natively, and has built-in AI.

Try Quadratic free

Top comments (0)

AWS Security LIVE!

Join us for AWS Security LIVE!

Discover the future of cloud security. Tune in live for trends, tips, and solutions from AWS and AWS Partners.

Learn More

👋 Kindness is contagious

Explore a trove of insights in this engaging article, celebrated within our welcoming DEV Community. Developers from every background are invited to join and enhance our shared wisdom.

A genuine "thank you" can truly uplift someone’s day. Feel free to express your gratitude in the comments below!

On DEV, our collective exchange of knowledge lightens the road ahead and strengthens our community bonds. Found something valuable here? A small thank you to the author can make a big difference.

Okay