How to sign PDF document using Bytescout.PDF library for .NET applications

Digitally signing PDF using Bytescout.PDF library for .NET

In this example Bytescout.PDF library for .NET signs existing PDF document (HelloWorld.pdf) and saves as "Signed.pdf" document file.

Download example source code: bytescoutpdf_example_sign_pdf_document.zip (10 KB)

Existing PDF document which we take as an example

Existing PDF document signed with PFX digital signature using Bytescout.PDF library for .NET

 

            // Create main PDF Doc Engine
            
PDFDocEngine engine = new PDFDocEngine("""");

            
// Open existing document
            
Document document engine.AddDocument("HelloWorld.pdf");

            
document.AddSignature("dig-signature.pfx""John Doe""Approved"false"123456");

            
// Save document
            
document.Save("signed.pdf");

 

Download example source code: bytescoutpdf_example_sign_pdf_document.zip (10 KB)

Filed in: PDF SDK for .NET

Tutorials: