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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

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

option<br />

searchpath 1<br />

shutdownstrategy<br />

description<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 61). An empty string deletes all existing<br />

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

see »File search and the searchpath resource category«, page 62.<br />

(Integer) Strategy for releasing global resources which are allocated once for all <strong>TET</strong> objects. Each global<br />

resource is initialized on demand when it is first needed. This option must be set to the same value for all<br />

<strong>TET</strong> objects in a process; otherwise the behavior is undefined (default: 0):<br />

0 A reference counter keeps track of how many PLOP objects use the resource. When the last<br />

<strong>TET</strong> object is deleted and the reference counter drops to zero, the resource is released.<br />

1 The resource is kept until the end of the process. This may slightly improve performance, but<br />

requires more memory after the last <strong>TET</strong> object is deleted.<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 />

150 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!