The macro with-page-transform
evaluates
x
,
y
,
width
and
height
to define a rectangular region within the coordinate space of an output pane or printer port. Within
body
the region is mapped onto the printable area of the page. If the specified rectangle does not have the same aspect ratio as the printable area of the page, then non-isotropic scaling will occur.
Any number of calls to with-page-transform
can occur during the printing of a page; for example, it is sometimes convenient to use a different page transform from that used to print the main body of the page when printing headers and footers.
(example-edit-file "capi/graphics/metafile")
(example-edit-file "capi/printing/fit-to-page")
(example-edit-file "capi/printing/multi-page")
(example-edit-file "capi/printing/page-on-demand")
CAPI User Guide and Reference Manual (Windows version) - 3 Aug 2017