Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Guides   Examples
New in version: 7.5   8.0   8.1   8.2   8.3   8.4   8.5   9.0   9.1   9.2    Statistic  


Sets or changes the bounding box of a page.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
DynaPDF 8.2 Yes Yes Yes Yes Yes
MBS( "DynaPDF.SetPageBBox"; PDF; PageIndex; Box; Left; Bottom; Right; Top )   More


Parameter Description Example value
PDF The PDF reference returned from DynaPDF.New. $pdf
PageIndex The page index in range from 1 to DynaPDF.GetPageCount. 1
Box Optional, which box to use. Default is Mediabox. You can pass MediaBox, CropBox, ArtBox, BleedBox or TrimBox. "MediaBox"
Left The left coordinate of the rectangle. 0
Bottom The bottom coordinate of the page. 0
Right The right coordinate of the page. 595
Top The top coordinate of the page. 842


Returns OK or error.


Sets or changes the bounding box of a page.
This function is intended to be fast as possible. It requires no open page like DynaPDF.SetBBox, it does not change the default media or crop box, and it does not adjust the current coordinate system if the media box will be changed.
The function is useful if only one or more bounding boxes must be changed, without editing a page, or when a specific area of a page should be rendered. In the latter case change the crop box and restore it to the previous value when finish.
To delete a bounding box set the bounding box to 0, 0, 0, 0.

See also SetPageBBox function in DynaPDF manual.

See also

Blog Entries

Created 4th May 2018, last changed 4th May 2018

DynaPDF.SetPDFVersion   -   DynaPDF.SetPageCoords

Feedback: Report problem or ask question.

MBS Xojo Plugins