2019.2

Table Of Contents
"Size()" on page280 "IPdfRect"
on
page282
Returns the size of the rectangle that is used to
clip (crop) the content of the page before
applying 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 context 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.
scale
Scale at which to draw. To draw at the 100% size, use a scale of device_dpi / 72. Do not use
the DC to do the scaling; this will result in scaling artifacts being drawn.
offsetX
Horizontal offset from the left edge of the DC surface, in *device* units, at which to start the
drawing.
offsetY
Vertical offset from the top edge of the DC surface, in *device* units, at which to start the
drawing.
The drawing is done in PDF user space units (72th of an inch). In order to have a smooth
drawing of the page, the device context must have its mapping mode set to MM_TEXT with a
Page 272