DAGetPageBox

Direct access functionality, Page properties

Description

Returns a dimension of the specified page boundary rectangle.

Returned values are points measured from the bottom left corner of the page.

Syntax

Delphi

function TPDFlib.DAGetPageBox(FileHandle, PageRef, BoxIndex, Dimension: Integer): Double;

ActiveX

Function PDFlib::DAGetPageBox(FileHandle As Long, PageRef As Long, BoxIndex As Long, Dimension As Long) As Double

DLL

double DLDAGetPageBox(int InstanceID, int FileHandle, int PageRef, int BoxIndex, int Dimension);

Parameters

FileHandleA handle returned by the DAOpenFile, DAOpenFileReadOnly or DAOpenFromStream functions
PageRefA page reference returned by the DAFindPage or DANewPage functions
BoxIndex1 = MediaBox 2 = CropBox 3 = BleedBox 4 = TrimBox 5 = ArtBox
Dimension0 = Left 1 = Top 2 = Width 3 = Height 4 = Right 5 = Bottom int BoxIndex, int Dimension);