DASetPageSize

直接访问功能、页面属性

描述

将指定页面设置为具有指定宽度和高度

语法

Delphi

Function TPDFlib.DASetPageSize(FileHandle, PageRef: Integer; PntWidth, PntHeight: Double): Integer;

ActiveX

Function PDFlib::DASetPageSize(FileHandle As Long, PageRef As Long, PntWidth As Double, PntHeight As Double) As Long

DLL

int DLDASetPageSize(int InstanceID, int FileHandle, int PageRef, double PntWidth, double PntHeight);

参数

FileHandle由 DAOpenFile、DAOpenFileReadOnly 或 DAOpenFromStream 函数返回的句柄
PageRefDAFindPage 或 DANewPage 函数返回的页面引用
PntWidth页面的新宽度,以点为单位
PntHeight以磅为单位测量的页面新高度

返回值

0指定的 FileHandle 或 PageRef 无效
1页面大小已成功设置