AddPageMatrix

Page manipulation

Description

Function will scale the page contents in either direction and also move the page up, down, left or right. The parameters are in points where 72 points = 1 inch.

xscale = 1, yscale = 1 is the required for 100% scaling. scale = 2 scale the width by a factor of 2 or 200%

xoffset = 72 moves the page 1 inch to the right. -72 1 inch to the left yoffset = 72 moves the page 1 up and -72 moves the page 1 inch down

Syntax

Delphi

function TPDFlib.AddPageMatrix(XScale, YScale, XOffset, YOffset: Double): Integer;

ActiveX

Function PDFlib::AddPageMatrix(XScale As Double, YScale As Double, XOffset As Double, YOffset As Double) As Long

DLL

int DLAddPageMatrix(int InstanceID, double xscale, double yscale, double xoffset, double yoffset);

Parameters

XScaleHorizontal scale
YScaleVertical scale
XOffsetHorizontal offset
YOffsetVertical offset

Return values

1Page matrix added successfuly Failed adding page matrix
0