In this short guide, that will show you how to apply a digital signature to a PDF document with the PDF Printer.
Get a Certificate
Before you can sign anything, you need to get a certificate. Certificates for digital signatures are normally issued by a limited number of companies, who are certified to do this. Ordering certificates from these companies often cost anywhere from $10 to $1000 depending on the type of certificate you need.
You can also make your own certificate if you like and we recommend that you do that for testing the procedure described in this short guide. Please go to www.pdfpowertool.com to create a test certificate.
Place your certificate in a folder on your computer. We have placed a test certificate in
Using the Signature
You can open the printer options from the start menu and go to the signature tab. Here you can specify a file name for your signature file. Remember to also set your signature password as shown below.
Modifying the Configuration Files
As an alternative to the options dialog mentioned above, you can also set the the values for the signing certificate in one of the configuration files that the PDF Printer use. I will show you how to do this.
With the certificate in place, you just need to modify one of the configuration files that control the printer. If you are controlling the printer using the API then you are most likely writing the runonce.ini. In this example, I will use the global.ini to apply my signature.
Locate your global.ini and edit it in Notepad. You need to set two values. The first one is SignCertificate that tells the PDF Printer, which certificate to use. The second one is SignPassword that holds the password for the certificate.
Save the changes and make a print to the PDF Printer.
In our test we just printed a simple text from Notepad.
Open the signature panel to see the signature.
The example above did not have a signature that was visible in the document itself. It only made the Adobe Reader show that the document was signed. You can use a set of additional signature settings to make the signature visible in the PDF document.
Try adding the following information to your global.ini.
Print a new PDF document and check the signature at the bottom of page 1. If your certificate is trusted then it will look something like this:
Use the Certificate Store
The program can also use certificates from the computer's certificate store. Signing with a certificate from the certificate store is very similar to using a certificate in a file.
Instead of setting the SignCertificate and SignPassword you need to use the following settings:
|SignThumbprint||Certificates that can sign your documents have a property named Thumbprint. The thumbprint is a code that uniquely identifies the certificate within the store.|
|SignStoreName||The certificate store contains a set of certificate folders. Each of these folders contains a set of installed certificates. When you try to locate a certificate, you need to tell in which folder the certificate is stored. Valid folder names are
|SignStoreLocation||On the computer, you can find certificate stores for the current user and the local machine. Normally you want to access the user's personal certificates. In that case, you can set the SignStoreLocation to
SignStoreName und SignStoreLocation are optional settings and can be left blank if you want to use the default values.