PDFlib Text Extraction Toolkit (TET) Manual
PDFlib Text Extraction Toolkit (TET) Manual
PDFlib Text Extraction Toolkit (TET) Manual
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
A section for each of the resource categories listed at the beginning of the file. Each<br />
section starts with a line showing the resource category, followed by an arbitrary<br />
number of lines describing available resources. The list is terminated by a line with a<br />
single period character. Each resource data line contains the name of the resource<br />
(equal signs have to be quoted). If the resource requires a file name, this name has to<br />
be added after an equal sign. The searchpath (see below) will be applied when <strong>TET</strong><br />
searches for files listed in resource entries.<br />
Sample UPR file.<br />
The following listing gives an example of a UPR configuration file:<br />
PS-Resources-1.0<br />
searchpath<br />
glyphlist<br />
codelist<br />
encoding<br />
.<br />
searchpath<br />
/usr/local/lib/cmaps<br />
/users/kurt/myfonts<br />
.<br />
glyphlist<br />
myglyphlist=/usr/lib/sample.gl<br />
.<br />
codelist<br />
mycodelist=/usr/lib/sample.cl<br />
.<br />
encoding<br />
myencoding=sample.enc<br />
.<br />
File search and the searchpath resource category. In addition to relative or absolute<br />
path names you can supply file names without any path specification to <strong>TET</strong>. The<br />
searchpath resource category can be used to specify a list of path names for directories<br />
containing the required data files. When <strong>TET</strong> must open a file it will first use the file<br />
name exactly as supplied, and try to open the file. If this attempt fails, <strong>TET</strong> will try to<br />
open the file in the directories specified in the searchpath resource category one after<br />
another until it succeeds. Multiple searchpath entries can be accumulated, and will be<br />
searched in reverse order (paths set at a later point in time will searched before earlier<br />
ones). In order to disable the search you can use a fully specified path name in the <strong>TET</strong><br />
functions.<br />
On Windows <strong>TET</strong> initializes the searchpath resource category with a value read from<br />
the following registry keys:<br />
HKLM\SOFTWARE\<strong>PDFlib</strong>\<strong>TET</strong>4\4.2\SearchPath<br />
HKLM\SOFTWARE\<strong>PDFlib</strong>\<strong>TET</strong>4\SearchPath<br />
HKLM\SOFTWARE\<strong>PDFlib</strong>\SearchPath<br />
These registry entries may contain a list of path names separated by a semicolon ’;’<br />
character. The Windows installer initializes the SearchPath registry entry with the name<br />
of the resource directory in the <strong>TET</strong> installation directory.<br />
Note Be careful when manually accessing the registry on 64-bit Windows systems: as usual, 64-bit<br />
binaries work with the 64-bit view of the Windows registry, while 32-bit binaries running on a<br />
64-bit system work with the 32-bit view of the registry. If you must add registry keys for a 32-bit<br />
62 Chapter 5: Configuration