HasPageBox

Page properties

Description

Indicates whether the selected page has the specified boundary rectangle

MediaBox and CropBox may be inherited from a parent page-tree node. BleedBox, TrimBox and ArtBox belong to the page itself and are never inherited; when absent, their effective dimensions default to the effective CropBox

Syntax

Delphi

Function TPDFlib.HasPageBox(BoxType: Integer): Integer;

ActiveX

Function PDFlib::HasPageBox(BoxType As Long) As Long

DLL

int DLHasPageBox(int InstanceID, int BoxType);

Parameters

BoxType1 = MediaBox 2 = CropBox 3 = BleedBox 4 = TrimBox 5 = ArtBox

Return values

0The page has no explicit box of this type and no applicable inherited value; default dimensions returned by GetPageBox do not count as an explicit box
1The page has its own boundary rectangle, stored directly or through an indirect reference
2The page inherits a MediaBox or CropBox from a parent page-tree node, whether that array is direct or indirect