Do you want to build a web application that allows clients to sign anywhere on PDF document directly on web page? Do you allow document recipients to verify that the contents of PDF document has not been edited since you signed it? Do you want to simplify the working process and get PDF documents signed remotely? For these questions, it needs a printer and a scanner in the past, as well as a complicated process, printing, signing, scanning, sending, etc. This process is really too time consuming.
Now there is a far easier way to sign PDF document using digital signature. You can simply use XsPDF .NET PDF signature library to quickly add a signature to PDF documents for C# web and windows applications development. You are allowed to position PDF signature where you want it, on any page and location. Signing anywhere on PDF document for C# is one of the basic function that is compiled into our PDF signing library. You may download our free trial online to test more mature PDF signing functions.
We’ll show you how to quickly add a digital signature to PDF document using C# programming language below. It simply specifies the target page and position and save it back to a standard PDF document that can be read anywhere.
Sign Anywhere on PDF Page in C#
//Load the pfx certificate file with password PdfCertificate cert = new PdfCertificate("demo.pfx", "your-password"); PdfSigner signer = new PdfSigner("demo.pdf", cert); signer.ContactInfo = "your contact information"; signer.Location = "your location"; signer.Reason = "your reason"; signer.FieldName = "XsPDF Sign"; //Sign in target page signer.PageId = 0; //Sign in target area in page signer.Rect = new Rectangle(100, 100, 100, 50); signer.SignatureAlgorithm = SignatureAlgorithm.SHA256; signer.SignatureShowingType = SignatureShowingType.Description; signer.Sign("text-sign.pdf");