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.

Beginning <strong>and</strong> Ending a Document 3.3<br />

dlpdfdocembedfonts<br />

When this method is called, all fonts seen will be embedded in the document if possible, including Base 14<br />

fonts. The flag set by this method is in DLPDFDOC->EmbedFonts, <strong>and</strong> may be safely manipulated by the<br />

client program. It is also possible to specify embedding <strong>and</strong> subsetting on the font create call.<br />

NOTE: If a font is available but not licensed for embedding, it will be created as a<br />

referenced font rather than an embedded font. An exception is not returned for<br />

this condition, but the NotEmbedded flag of the DLPDFFONT structure can be<br />

inspected after the dlpdfdocembedfonts call, if desired.<br />

dlpdfdocsetencoding<br />

The encoding of created fonts will default to WinAnsiEncoding on Windows machines <strong>and</strong> St<strong>and</strong>ard<br />

encoding on all other platforms. You may set it to any valid encoding through this method.<br />

This encoding is used when the font create call does not include an encoding.<br />

dlpdfdocsetpdfname<br />

When the desired name of the PDF file resulting from this document is known at document creation time,<br />

it may be stored using this method <strong>and</strong> will be retrieved when the document is written.<br />

dlpdfdoclinearize<br />

When it is known at document creation time that this file should be written in a linearized form, this<br />

knowledge may be stored via this method <strong>and</strong> will be retrieved when the document is written.<br />

dlpdfdocsetdocinfo<br />

This method accepts couplets of information, each a string (encoded as PDFDocEncoding values), <strong>and</strong><br />

saves them in the document information structure of the document. This may be done at any time.<br />

dlpdfdocmakethumbnails<br />

For Adobe PDF Library v4.x <strong>and</strong> higher, this method will create a thumbnail image for each page in the<br />

document. This call may be made at any time prior to writing the document. Thumbnails will be created<br />

automatically at document write time.

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

Saved successfully!

Ooh no, something went wrong!