Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
DynaPDF.SetTemplBBox
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
Parameters
Parameter | Description | Example |
---|---|---|
The PDF reference returned from DynaPDF.New. | ||
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 SetTemplBBox function in DynaPDF manual.
See also
Release notes
- Version 12.3
- Added DynaPDF.SetTemplBBox function.
Blog Entries
This function checks for a license.
Created 14th June 2022, last changed 14th June 2022