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.

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

text in Unicode UTF-16 format, with Big-endian or Little-endian orientation<br />

depending on the host platform.<br />

<strong>DLI</strong> Initialization now Required<br />

Initialization of <strong>DLI</strong> is now required; support for using <strong>DLI</strong> without initialization has<br />

been removed. If you intend to use <strong>DLI</strong> methods in your application, you must<br />

intialize <strong>DLI</strong> via dlpdfinit. <strong>DLI</strong> users should initialize the Adobe PDF Library<br />

through the <strong>DLI</strong> initialization call; PDFLInit <strong>and</strong> PDFLTerm should never be<br />

directly called from a <strong>DLI</strong> application.<br />

All <strong>DLI</strong> documents require an instance for creation. The<br />

dlpdfdoccreatewithinstance call has been removed from the API, <strong>and</strong> the<br />

dlpdfinit <strong>and</strong> dlpdfdoccreate call have been modified significantly (see<br />

“Functions Updated” on page 1.18). <strong>DLI</strong> should only be initialized once per process.<br />

Streaming PostScript Removed<br />

All PostScript output is produced using the Adobe PDF Library. Support for<br />

streaming PostScript created by <strong>DLI</strong> has been removed. This facility was previously<br />

deprecated in the <strong>DLI</strong> v2.2 series.<br />

PDF Image Import Improvements<br />

PDF image import has been enhanced as of <strong>DLI</strong> v3.0.13. The value of the imported<br />

PDF file's Rotate key, if present, is now honored. Images are imported by <strong>DLI</strong> <strong>and</strong><br />

placed in the rotated orientation displayed by Adobe Reader <strong>and</strong> Acrobat.<br />

For the dlpdfimagecreatefrompdf call, a value of 0 is now accepted for the<br />

Width <strong>and</strong> Depth parameters. If either are 0, then the PDF page's crop box is used to<br />

form the DLPDFIMAGE's visible region. This will be shifted using the XDisp <strong>and</strong><br />

YDisp values to generate the imported image.

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

Saved successfully!

Ooh no, something went wrong!