THotPDF.SetLoadedPageBox Method

Sets the page bounding box (MediaBox, CropBox, BleedBox, TrimBox, or ArtBox) for the specified page in the loaded PDF document

Declaration

procedure SetLoadedPageBox(PageIndex: Integer; Box: THPDFPageBoundary; ARect: THPDFRect);

Unit

HPDFDoc

Parameters

NamePurpose
PageIndexZero-based index of the target page; 0 indicates the first page
BoxThe type of page boundary to set, which takes the value of the THPDFPageBoundary enumeration (MediaBox, CropBox, BleedBox, TrimBox, ArtBox)
ARectNew bounding rectangle, represented in PDF user space coordinates (points) with the origin at the bottom-left corner

Usage notes

Related APIs