Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Guides   Examples
New in version: 7.5   8.0   8.1   8.2   8.3   8.4   8.5   9.0   9.1   9.2    Statistic  


The function measures the height of a formatted text block.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
DynaPDF 3.1 Yes Yes Yes Yes Yes
MBS( "DynaPDF.GetFTextHeightEx"; PDF; Width; Align; Text )   More


Parameter Description Example value
PDF The PDF reference returned from DynaPDF.New. $pdf
Width Width of output rectangle $width
Align The text alignment. Can be left, center, right or justify. "left"
Text The text to write. "Hello World"


Returns height or error message.


The function measures the height of a formatted text block.
The function works in the same way as DynaPDF.GetFTextHeight but the output rectangle must not be set manually beforehand.
The height of the output rectangle is set to -1 to avoid a page break during measuring.
The parameter text must contain the same text (incl. format tags if any) as which should be printed
later with DynaPDF.GetFTextHeightEx.
See also DynaPDF.GetFTextHeight.

See also GetFTextHeightEx function in DynaPDF manual.

See also

Created 18th August 2014, last changed 27th May 2017

DynaPDF.GetFTextHeight   -   DynaPDF.GetField

Feedback: Report problem or ask question.

MBS Xojo Chart Plugins