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.

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

Overview<br />

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

Inclusion of graphics is accomplished in two ways. The first is an image, in the sense<br />

of a PDF or PostScript Image Operator. The second is a Encapsulated PostScript (EPS)<br />

file. Note that images included as EPS will not appear in PDF pages on-screen (e.g.<br />

when displayed by Adobe Reader or Adobe Acrobat), but will appear in both<br />

PostScript pages <strong>and</strong> Adobe PDF PostScript pages. Adobe Normalizer, also available<br />

from <strong>Datalogics</strong>, can be used to distill EPS images to PDF format in order to make<br />

EPS sources visible in PDF output.<br />

The interfaces provided in <strong>DLI</strong> for images are intentionally very low-level. They<br />

presume that any graphics conversions have already been completed. Public-domain<br />

packages for the conversion of graphics from common formats (PNG, GIF, TIFF, etc.)<br />

are readily available <strong>and</strong> can create data in the form these interfaces expect.<br />

Graphic Image Structures<br />

<strong>DLI</strong> manages graphics via the structure DLPDFIMAGE. This structure is used for both<br />

image <strong>and</strong> EPS data.<br />

There are four functions to create images depending on the format (Bitmap, EPS, PDF,<br />

<strong>and</strong> a convenience function for several other graphic formats), <strong>and</strong> one function to use<br />

an image (dlpdfcontentreferenceimage).<br />

NOTE: Encapsulated PostScript (EPS) is not a valid graphic format for PDF. The EPS<br />

function available through <strong>DLI</strong> will enable you to embed the EPS image in the PDF<br />

document, but it will not be visible until the document is printed. (Adobe<br />

Normalizer, also available from <strong>Datalogics</strong>, can be used to distill EPS images to PDF<br />

format in order to make EPS sources visible in PDF output.)<br />

Image structures are created on a per-document basis. If the same image is used in<br />

multiple documents, multiple copies of that image must be created. Images are tracked<br />

within the document <strong>and</strong> all images are destroyed when the document is destroyed.

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

Saved successfully!

Ooh no, something went wrong!