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.

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

option<br />

outputformat<br />

resourcefile<br />

searchpath 1<br />

description<br />

(Keyword; Only for the C and RPG language bindings) Specifies the format of the text returned by <strong>TET</strong>_<br />

get_text( ) (default on zSeries with USS or MVS: ebcdicutf8; on all other systems: utf8):<br />

utf8 Strings will be returned in null-terminated UTF-8 format (on both ASCII- and EBCDIC-based<br />

systems).<br />

ebcdicutf8 (Only available on EBCDIC-based systems) Strings will be returned in null-terminated EBCDICencoded<br />

UTF-8 format. Code page 37 will be used on iSeries, code page 1047 on zSeries.<br />

utf16<br />

Strings will be returned in UTF-16 format in the machine’s native byte ordering (on Intel x86<br />

architectures the native byte order is little-endian, while on Sparc and PowerPC systems it is<br />

big-endian).<br />

(Name string) Relative or absolute file name of the UPR resource file. The resource file will be loaded<br />

immediately. Existing resources will be kept; their values will be overridden by new ones if they are set<br />

again. Explicit resource options will be evaluated after entries in the resource file.<br />

The resource file name can also be supplied in the environment variable <strong>TET</strong>RESOURCEFILE or with a<br />

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

tet.upr (on MVS: upr)<br />

(List of name strings) Relative or absolute path name(s) of a directory containing files to be read. The<br />

search path can be set multiply; the entries will be accumulated and used in least-recently-set order (see<br />

Section 5.2, »Resource Configuration and File Searching«, page 51). An empty string deletes all existing<br />

search path entries. On Windows the search path can also be set via a registry entry. Default: empty<br />

1. Option values can be accumulated with multiple calls.<br />

2. Unlike the UPR syntax an equal character ’=’ between the name and value is neither required nor allowed.<br />

152 Chapter 10: <strong>TET</strong> Library API Reference

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

Saved successfully!

Ooh no, something went wrong!