17.05.2014 Views

PDFlib Text Extraction Toolkit (TET) Manual

PDFlib Text Extraction Toolkit (TET) Manual

PDFlib Text Extraction Toolkit (TET) Manual

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.

10.9 Option Handling<br />

C++ void set_option(string optlist)<br />

C# Java void set_option(String optlist)<br />

Perl PHP <strong>TET</strong>_set_option(resource tet, string optlist)<br />

VB Sub set_option(optlist As String)<br />

C void <strong>TET</strong>_set_option(<strong>TET</strong> *tet, const char *optlist)<br />

Set one or more global options for <strong>TET</strong>.<br />

optlist An option list specifying global options according to Table 10.14. If an option is<br />

provided more than once the last instance will override all previous ones. In order to<br />

supply multiple values for a single option (e.g. searchpath) supply all values in a list argument<br />

to this option.<br />

The following options can be used: asciifile, cmap, codelist, encoding, fontoutline,<br />

glyphlist, license, licensefile, outputformat, resourcefile, searchpath<br />

Details<br />

Multiple calls to this function can be used to accumulate values for those options<br />

marked in Table 10.14. For unmarked options the new value will override the old one.<br />

Table 10.14 Global options for <strong>TET</strong>_set_option( )<br />

option<br />

asciifile<br />

cmap 1, 2<br />

codelist 1, 2<br />

encoding 1, 2<br />

fontoutline 1, 2<br />

glyphlist 1, 2<br />

hostfont 1, 2<br />

description<br />

(Boolean; Only supported on iSeries and zSeries). Expect text files (e.g. UPR configuration files, glyph lists,<br />

code lists) in ASCII encoding. Default: true on iSeries; false on zSeries<br />

(List of name strings) A list of string pairs, where each pair contains the name and value of a CMap resource<br />

(see Section 5.2, »Resource Configuration and File Searching«, page 51).<br />

(List of name strings) A list of string pairs, where each pair contains the name and value of a codelist resource<br />

(see Section 5.2, »Resource Configuration and File Searching«, page 51).<br />

(List of name strings) A list of string pairs, where each pair contains the name and value of an encoding<br />

resource (see Section 5.2, »Resource Configuration and File Searching«, page 51).<br />

(List of name strings) A list of string pairs, where each pair contains the name and value of a FontOutline<br />

resource (see Section 5.2, »Resource Configuration and File Searching«, page 51).<br />

(List of name strings) A list of string pairs, where each pair contains the name and value of a glyphlist resource<br />

(see Section 5.2, »Resource Configuration and File Searching«, page 51).<br />

(List of name strings) A list of string pairs, where each pair contains a PDF font name and the UTF-8 encoded<br />

name of a host font to be used for an unembedded font.<br />

license (String) Set the license key. It must be set before the first call to <strong>TET</strong>_open_document*( ).<br />

licensefile<br />

(String) Set the name of a file containing the license key(s). The license file can be set only once before the<br />

first call to <strong>TET</strong>_open_document*( ). Alternatively, the name of the license file can be supplied in an<br />

environment variable called PDFLIBLICENSEFILE or (on Windows) via the registry.<br />

10.9 Option Handling 151

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

Saved successfully!

Ooh no, something went wrong!