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

參數

XScaleHorizontal scale
YScaleVertical scale
XOffsetHorizontal offset
YOffsetVertical offset

傳回值

1頁面矩陣加入成功 加入頁面矩陣失敗
0