22.03.2015 Views

DLI Implementation and Reference Guide - Datalogics

DLI Implementation and Reference Guide - Datalogics

DLI Implementation and Reference Guide - Datalogics

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Samples <strong>and</strong> Links 17.19<br />

SignDoc<br />

This sample demonstrates how to place a digital signature into a PDF file generated by<br />

<strong>DLI</strong>. This signature will be compatible with the Adobe self-sign plugin, <strong>and</strong> will<br />

contain an x.509 certificate.<br />

NOTE: Included in this project is a file "rsasign.cpp", containing a very slow<br />

implementation of the RSA encryption algorithm. <strong>Datalogics</strong> does not recommend<br />

using this implementation as a basis for Production code.<br />

<strong>DLI</strong> can also produce signatures with PCKS #7-format certificates, for the Adobe selfsign<br />

plugin <strong>and</strong> the VeriSign signature plugin. Customers wishing to do this will<br />

follow a slightly different path, <strong>and</strong> must be able to generate these certificates.<br />

This sample uses a dummy x.509 certificate; the key pair used to generate this<br />

certificate is stored in the sample.key.info file in the @Data directory.<br />

As of Adobe PDF Library v6.1.1 <strong>and</strong> <strong>DLI</strong> v3.0.23, this sample application produces<br />

digital signatures compatible with the Adobe Acrobat v5 validation plug-in. In a<br />

future release, <strong>DLI</strong> will be upgraded to generate digital signatures compatible with

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!