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.

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

Introduction to Page Interface<br />

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

<strong>DLI</strong> presumes that pages will be added to the end of the document only. This is<br />

required for optimal generation of the PDF Page Tree Structures, <strong>and</strong> matches the<br />

most common modes for creating documents. If output to PDF is desired <strong>and</strong> local<br />

PostScript is not, you may use <strong>DLI</strong> to create most pages, <strong>and</strong> then add pages out of<br />

order to the document via the COS Layer interface. If local PostScript is enabled, these<br />

added pages will be placed as if they were following the last page.<br />

Page Structure<br />

A page is represented in <strong>DLI</strong> by the data structure DLPDFPAGE. These data<br />

structures, one per page, are tracked within the package <strong>and</strong> destroyed when the<br />

document is destroyed. Pointers to these structures remain valid until the document is<br />

destroyed.<br />

Page Interface Calls<br />

Calls available to the Page Interface in <strong>DLI</strong> are:<br />

dlpdfpagefindfromnumber<br />

This procedure will return the DLPDFPAGE construct for the specified page. This is<br />

provided to allow pages to be modified after creation without having to keep pointers<br />

to all of the pages in the application. If the page number specified has not yet been<br />

created, a NULL pointer will be returned. The first page is considered to be page<br />

number one.<br />

dlpdfpagecreate<br />

This procedure will create a new page in the current document. It will be positioned<br />

following all other pages in the current document. If the specified document does not

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

Saved successfully!

Ooh no, something went wrong!