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

DynaPDF.SetBBox

Sets a specific bounding box of the current open PDF page.

Component Version macOS Windows Linux Server iOS SDK
DynaPDF 4.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "DynaPDF.SetBBox"; PDF; box; left; top; right; bottom )   More

Parameters

Parameter Description Example
PDF The PDF reference returned from DynaPDF.New. $pdf
box Which box to set. Can be Art, Bleed, Crop, Trim or Media. "Media"
left The lower left x value. 0
top The lower left y. 0
right The upper right x. 595
bottom The upper right y. 895

Result

Returns OK or error.

Description

Sets a specific bounding box of the current open PDF page.
A PDF page may be prepared either for a finished medium, such as a sheet of paper, or as part of a prepress process in which the content of the page is placed on an intermediate medium, such as film or an imposed reproduction plate.
See also SetBBox function in dynapdf_help.pdf.

See also SetBBox function in DynaPDF manual.

Examples

Set a media and trim box with same size:

Set Variable [ $r ; Value: MBS("DynaPDF.SetBBox"; $pdf; "Media"; 0; 0; MBS("DynaPDF.GetPageWidth"; $pdf); MBS("DynaPDF.GetPageHeight"; $pdf)) ]
Set Variable [ $r ; Value: MBS("DynaPDF.SetBBox"; $pdf; "Trim"; 0; 0; MBS("DynaPDF.GetPageWidth"; $pdf); MBS("DynaPDF.GetPageHeight"; $pdf)) ]

See also

Example Databases

Blog Entries

This function checks for a license.

Created 18th August 2014, last changed 3th April 2024


DynaPDF.SetAnnotSubject - DynaPDF.SetBookmarkDest