DASetPageSize

Direct access functionality, Page properties

Description

Sets the specified page to have a certain width and height.

Syntax

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

Parameters

FileHandleA handle returned by the DAOpenFile, DAOpenFileReadOnly or DAOpenFromStream functions
PageRefA page reference returned by the DAFindPage or DANewPage functions
PntWidthThe new width of the page, measured in points
PntHeightThe new height of the page, measured in points

Return values

0The specified FileHandle or PageRef were not valid
1The page size was set successfully