2022.2

Table Of Contents
Caution: This method is subject to many limitations (see below) and exists for backward-com-
patibility and debugging purposes only. For production purposes, use ExtractText2() instead.
Syntax
VOID ExtractText (
FLOAT left,
FLOAT bottom,
FLOAT right,
FLOAT top
)
left
Distance in inches of the left limit of the region from the left edge of the /CropBox.
bottom
Distance in inches of the bottom limit of the region from the bottom edge of the /CropBox.
right
Distance in inches of the right limit of the region from the left edge of the /CropBox.
top
Distance in inches of the top limit of the region from the bottom edge of the /CropBox.
Return value
A string containing the text extracted from the specified region.
Limitations
l
No Unicode support.
l
A word is extracted only if it fits entirely in the region.
l
Empty lines are not supported.
l
A maximum of 4096 chars is returned.
l
A word can contain a maximum of 128 chars.
l
Horizontal moveto is not considered as a space.
l
/CropBox size is not taken into account (an object whose left is at 144 is considered to be 2
inches from the edge even if the /CropBox starts at 72).
l
Only horizontal text is supported; vertical or rotated text is undefined.
l
Rotated pages are unsupported.
l
/UserUnit is not supported.
Page 210