HasPageBox

Page properties

Description

Indicates whether the selected page has the specified boundary rectangle.

MediaBox and CropBox can be inherited from a parent node in the page tree. BleedBox, TrimBox and ArtBox belong to the page itself and are never inherited; where they are absent, their effective dimensions fall back to those of 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 carries no explicit box of this type and nothing suitable is inherited either; default dimensions reported by GetPageBox do not count as an explicit box
1The page has a boundary rectangle of its own, held directly or via an indirect reference
2The page inherits a MediaBox or CropBox from a parent node in the page tree, irrespective of whether that array is direct or indirect