AddPageMatrix

页面操作

描述

该函数可在任一方向缩放页面内容,也可将页面向上、向下、向左或向右移动。参数单位为点,72 点 = 1 英寸

要实现 100% 缩放,必须设置 xscale = 1、yscale = 1,scale = 2 会将宽度缩放为 2 倍,即 200%

xoffset = 72 将页面向右移动 1 英寸,-72 向左移动 1 英寸;yoffset = 72 将页面向上移动 1 英寸,-72 向下移动 1 英寸

语法

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);

参数

XScale水平缩放比例
YScale垂直缩放
XOffset水平偏移量
YOffset垂直偏移

返回值

1已成功添加页面矩阵 添加页面矩阵失败
0