DAHasPageBox

Direct access functionality, Page properties

Description

Determines if a page has a particular page boundary rectangle.

Syntax

Delphi

function TPDFlib.DAHasPageBox(FileHandle, PageRef, BoxIndex: Integer): Integer;

ActiveX

Function PDFlib::DAHasPageBox(FileHandle As Long, PageRef As Long, BoxIndex As Long) As Long

DLL

int DLDAHasPageBox(int InstanceID, int FileHandle, int PageRef, int BoxIndex);

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

Return values

0The page does not have the specified page boundary rectangle The page has the specified page boundary rectangle
1