Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 11.0   11.1   11.2   11.3   11.4   11.5   12.0   12.1   12.2   12.3    Statistic    FMM    Blog  

DynaPDF.SetTemplBBox

Sets or changes a bounding box of a template.

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

Parameters

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.
"MediaBox"
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

Result

Returns OK or error.

Description

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

Release notes

  • Version 12.3
    • Added DynaPDF.SetTemplBBox function.

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


DynaPDF.SetStrokeColorValue - DynaPDF.SetTextDrawMode

Feedback: Report problem or ask question.


Start Chat