You need to create an object of PdfFileSignature class using input and output PDF files. Public static void AddTwoSignature () įor a document with forms or acroforms that needs to be signed, see the following example. The following code snippet shows you how to add signature in a PDF file. Finally, you need to save the signed PDF using Save method of the PdfFileSignature class. You can also specify other attributes for this method. Once the object of a particular signature type is created, you can use the Sign method of the PdfFileSignature class to sign the PDF and pass the particular signature object to this class. In order to create a signature of a specific type, you need to create an object of the particular class like PKCS1, PKCS7 or PKCS7Detached using the certificate file and the password. also provides different kinds of signatures like PKCS#1, PKCS#7, and PKCS#7Detached. You also need to create a Rectangle object at which you want to add the signature and in order to set appearance you can specify an image using SignatureAppearance property of the PdfFileSignature object. PdfFileSignature class allows you to add signature in a PDF file.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |