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" });

Heroku

Amplify your impact where it matters most — building exceptional apps.

Leave the infrastructure headaches to us, while you focus on pushing boundaries, realizing your vision, and making a lasting impression on your users.

Get Started

Oldest comments (0)

AWS Q Developer image

Your AI Code Assistant

Automate your code reviews. Catch bugs before your coworkers. Fix security issues in your code. Built to handle large projects, Amazon Q Developer works alongside you from idea to production code.

Get started free in your IDE

👋 Kindness is contagious

Engage with a wealth of insights in this thoughtful article, valued within the supportive DEV Community. Coders of every background are welcome to join in and add to our collective wisdom.

A sincere "thank you" often brightens someone’s day. Share your gratitude in the comments below!

On DEV, the act of sharing knowledge eases our journey and fortifies our community ties. Found value in this? A quick thank you to the author can make a significant impact.

Okay