2022.2

Table Of Contents
"ExtractText2(left, top, right, bottom)"
on page211
String
Returns the text located inside the region bounded by the left, top, right and bottom para-
meters. If multiple lines are found, they are separated by a CR-LF pair.
"MediaSize()" on page211
"IPdfRect"
on page217
Returns the size of the actual media, i.e. the sheet of paper.
"setIncludeBorders(pbIn-
cludeBorders)" on page212
Sets whether or not borders are included for IPage.ExtractText2(). If true, a character is con-
sidered to be inside the region using the 30% rule (i.e. at least 30% of the character must be
enclosed in the region). Otherwise, the character must be entirely enclosed in the region to be
returned.
"setTolerances(tolerableDeltaWidth,
tolerableDeltaHeight, tol-
erableDeltaFontHeight, tol-
erableGap)" on page212
Sets the floating point values for the tolerable factors.
"Merge(imageFile, left, top,
rotateAngle, scaleFactor)" on
page212
Inserts an image file and places it on the page at a specific location.
Supported image types are: JPG and PNG.
"Merge2(srcPage, left, top,
rotateAngle, scaleFactor)" on
page213
Transparently places a PDF page on top of the current page at a specific location.
"MergeToLayer(imageFile, left, top,
rotateAngle, scaleFactor, lay-
erName)" on page214
This method behaves the same as Merge() but allows to insert the image as a layer (aka an
Optional Content Group).
Supported image types are JPG and PNG.
"MergeToLayer2(srcPage, left, top,
rotateAngle, scaleFactor, lay-
erName)" on page215
This method behaves the same as Merge2() but allows to put the source page as a layer (aka
an Optional Content Group).
"Size()" on page216
"IPdfRect"
on page217
Returns the size of the rectangle that is used to clip (crop) the content of the page before apply-
ing it to the medium, in points.
IPage methods reference
Draw(context, scale, offsetX, offsetY)
Draws the page onto the device context. This method is highly dependent on the state of the device con-
text and there are a few interaction pitfalls to lookout for. See below for details.
Note: This method is not available in all scripting environments.
Syntax
VOID Draw (
HDC context,
FLOAT scale,
LONG offsetX,
LONG offsetY
)
context
Device context on which to draw the page.
Page 208