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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

A.160 <strong>DLI</strong> <strong>Reference</strong> <strong>Guide</strong><br />

dlpdfsignaturesetdatacallback<br />

(DLPDFSIGNATURE *signature, void (*dataCallback)(char *,<br />

int))<br />

Return Value: void<br />

Concepts <strong>and</strong> Facilities: <strong>Guide</strong> to the DL Pager Composition System<br />

Description<br />

Parameters<br />

Return Value<br />

This is an optional call for clients using PKCS<br />

#7 certificates. A callback function is supplied<br />

for the signature.<br />

• DLPDFSIGNATURE *signature: signature<br />

with which PKCS #7 certificate will be<br />

associated<br />

• void (*dataCallback)(char *,<br />

int): callback function, called during the<br />

dlpdfdocwritepdf function call; see<br />

Technical Notes below.<br />

void<br />

Exceptions<br />

Header<br />

Related Methods<br />

Availability<br />

dli.h<br />

dlpdfsignaturesetpkcs7cert<br />

dlpdfdocwritepdf<br />

All <strong>DLI</strong>-supported platforms.<br />

Technical Notes<br />

1 The callback is called during the dlpdfdocwritepdf function with binary<br />

information from the PDF file. This information will be in sequential pieces, <strong>and</strong><br />

may be used to generate the PDF document hash value. The information is<br />

supplied as binary values in the character buffer; the length to read is supplied as<br />

the second parameter.<br />

• A length of 0 (zero) passed in the callback function indicates that no further data is<br />

to be read, <strong>and</strong> the hash may be finalized.

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

Saved successfully!

Ooh no, something went wrong!