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

DynaPDF.Parser.SelectionBBox

Computes the bounding box of the current selection.

Component Version macOS Windows Linux Server iOS SDK
DynaPDF 14.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "DynaPDF.Parser.SelectionBBox"; PDF )   More

Parameters

Parameter Description Example
PDF The PDF reference. $pdf

Result

Returns list of values or error.

Description

Computes the bounding box of the current selection.
Use after DynaPDF.Parser.FindText to query selection location on page.
The bounding box is calculated in top down coordinates! This differs in comparison to almost all other functions which return PDF coordinates.
In order to place objects on this position it is usually best to enable visible coordinates with DynaPDF.SetUseVisibleCoords and to rotate the coordinate system with DynaPDF.SetOrientationEx according to the page orientation after the page was opened for editing.
Returns a list of values with coordinates, x1/y1 and x2/y2.

See also

Example Databases

Blog Entries

This function checks for a license.

Created 14th December 2023, last changed 14th December 2023


DynaPDF.Parser.Reset - DynaPDF.Parser.SelectionText