RemovePageBoxRange

Page properties

Description

Removes CropBox, BleedBox, TrimBox, or ArtBox from every selected page

Syntax

Function TPDFlib.RemovePageBoxRange(Const PageRange: WideString; BoxType: Integer): Integer;

Parameters

PageRangeA one-based range such as 1-3,7, or an empty string for every page
BoxType1 = MediaBox 2 = CropBox 3 = BleedBox 4 = TrimBox 5 = ArtBox; MediaBox and values outside 2 to 5 reject the call

Return values

Returns the number of pages processed

Remarks

MediaBox cannot be removed because every page requires an effective media boundary

See also

RemovePageBox, SetPageBoxRange