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
BottomPage coordinate or size value expressed in the current HotPDF coordinate space
RightPage coordinate or size value expressed in the current HotPDF coordinate space
TopPage coordinate or size value expressed in the current HotPDF coordinate space

Return value

This member returns no value

Usage notes

Related APIs