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 函式傳回的控制代碼
PageRef由 DAFindPage 或 DANewPage 函式傳回的頁面參照
PntWidth頁面的新寬度,以點計
PntHeight頁面的新高度,以點計

傳回值

0指定的 FileHandle 或 PageRef 無效
1頁面尺寸設定成功