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.

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

An Introduction to <strong>DLI</strong><br />

The <strong>Datalogics</strong> Interface (<strong>DLI</strong>) facilitates the rapid creation of PDF documents <strong>and</strong><br />

improves performance, throughput <strong>and</strong> graphics h<strong>and</strong>ling. It does this by bypassing<br />

many of the functions of the PDF Edit layer <strong>and</strong> eliminating redundant calls to the<br />

COS layer used in the Adobe® PDF Library. For information on the various layers of<br />

Adobe PDF Library please see the Acrobat Core API Overview.<br />

How to Create a PDF Document with<br />

<strong>DLI</strong><br />

The <strong>DLI</strong> package exists at the output end of the page creation process. As such, most<br />

of the intricacies of line breaking, page breaking <strong>and</strong> general composition are outside<br />

of its scope.<br />

The process of writing pages is where this package fits into an application. An<br />

overview of this process follows:<br />

1 Initialize <strong>DLI</strong>. (start of all processing)<br />

2 Define the document.<br />

3 Define fonts: i.e. Identify <strong>and</strong> describe each font to be used in the job to <strong>DLI</strong>.<br />

These can be done as encountered, if so desired.<br />

4 Define forms: i.e. Identify <strong>and</strong> describe each form to be used in the job to <strong>DLI</strong>.<br />

These can be done as encountered, if so desired.<br />

5 Define graphics: i.e. Identify <strong>and</strong> define each graphic to be used multiple times to<br />

<strong>DLI</strong>. These can be done as encountered, if so desired.<br />

6 For each page:<br />

• Create a dlpdfpage object.<br />

• Create a dlpdfcontent object.<br />

7 Generate the content of a single page:<br />

• For each graphic reference on the page, create the graphic in content.<br />

• For each text line on the page, create the text in content.<br />

8 End the content <strong>and</strong> inform <strong>DLI</strong> that the content is complete.<br />

9 End the page <strong>and</strong> inform <strong>DLI</strong> that the page is complete.

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

Saved successfully!

Ooh no, something went wrong!