Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old


Sets or changes a bounding box of a template.

Component Version macOS Windows Linux Server iOS SDK
DynaPDF 12.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "DynaPDF.SetTemplBBox"; PDF; Handle; Box; Left; Top; Right; Bottom )   More


Parameter Description Example
PDF The PDF reference returned from DynaPDF.New. $pdf
Handle Template handle. $template
Box Which box to use.
You can pass MediaBox, CropBox, ArtBox, BleedBox or TrimBox.
Left The left of the bounding box. 0
Top The top of the bounding box. 0
Right The right of the bounding box. 595
Bottom The bottom of the bounding box. 842


Returns OK or error.


Sets or changes a bounding box of a template.
Templates support the bounding boxes MediaBox and CropBox only. The latter one is considered by PlaceTemplateEx() only.
A crop box can be set to clip the contents of a template without changing its bounding box. This can be useful when placing imported pages on another page.
If all values are zero, the bounding box is deleted. Note that only the crop box can be deleted.

See also SetTemplBBox function in DynaPDF manual.

See also

Release notes

Blog Entries

This function checks for a license.

Created 14th June 2022, last changed 14th June 2022

DynaPDF.SetTabLen - DynaPDF.SetTextDrawMode