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.

2.12 <strong>DLI</strong> <strong>Implementation</strong> <strong>and</strong> <strong>Reference</strong> <strong>Guide</strong><br />

should not be made until all <strong>DLI</strong> structures, with the exception of the<br />

DLPDFINSTANCE pointer, <strong>and</strong> all PDE <strong>and</strong> PD library structures are freed. The<br />

dlpdfterm call will free the DLPDFINSTANCE pointer <strong>and</strong> the pointers set in the<br />

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

PDFLDataRec structure. Terminating <strong>DLI</strong> will also terminate the Adobe PDF<br />

Library.<br />

dlpdfterm<br />

This method will terminate <strong>DLI</strong> <strong>and</strong> the Adobe PDF Library. Call this function after<br />

all DLPDFDOC structures have been disposed of. In the case of multi-thread<br />

applications, each thread that initialized the Library must also terminate it when<br />

finished.<br />

This will typically be one of the last calls of a program using <strong>DLI</strong>. The call takes a<br />

DLPDFINSTANCE pointer, which is the DLPDFINSTANCE pointer returned by the<br />

dlpdfinit function call. Any composition program using <strong>DLI</strong> <strong>and</strong> the Adobe PDF<br />

Library should call dlpdfterm to terminate <strong>DLI</strong> <strong>and</strong> the Adobe PDF Library before<br />

terminating itself. The dlpdfterm function takes the DLPDFINSTANCE returned<br />

from dlpdfinit as its sole parameter.

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

Saved successfully!

Ooh no, something went wrong!