PDF .NET Library Documentation - PDF Technologies, Inc.
This function adds a digital signature to the document

Namespace:  PDFTech
Assembly:  PDFTechLib (in PDFTechLib.dll) Version: 1.0.0.0 (1.7.9.0)

Syntax

C#
public PDFDigitalSignature AddSignature(
	X509Certificate2 cert,
	PDFPage page,
	RectangleF box
)
Visual Basic (Declaration)
Public Function AddSignature ( _
	cert As X509Certificate2, _
	page As PDFPage, _
	box As RectangleF _
) As PDFDigitalSignature
Visual C++
public:
PDFDigitalSignature^ AddSignature(
	X509Certificate2^ cert, 
	PDFPage^ page, 
	RectangleF box
)

Return Value

Examples

This sample shows how to sign a PDF file using X.509 certificates.
CopyC#
PDFDocument doc = new PDFDocument("sample.pdf");                
PDFDigitalSignature sig = new PDFCertificate("MessageSigner",
    System.Security.Cryptography.X509Certificates.StoreName.My, doc.CurrentPage, new System.Drawing.RectangleF(10,10,35,35));        
sig.Location = "NY";            
sig.Reason = "For demo";
sig.ContactInfo = "support@pdf-technologies.com";            
doc.Save();

See Also