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: 9.3   9.4   9.5   10.0   10.1   10.2   10.3   10.4   10.5   10.6    Statistic    FMM    Blog  

DynaPDF.GetFTextHeight

The function measures the height of a formatted text block.

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

Parameters

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

Result

Returns height or error message.

Description

The function measures the height of a formatted text block.
Before calling this function a font (see DynaPDF.SetFont) and the output rectangle must be set with the function DynaPDF.SetTextRect. The parameter Height of DynaPDF.SetTextRect should be set to -1 to avoid page breaks. Otherwise the height of the first text block is returned that fits into the given height of the rectangle.
The parameter AText must contain the same text (incl. format tags if any) as which should be printed later with DynaPDF.WriteFText.
See also DynaPDF.GetFTextHeightEx.

See also GetFTextHeight function in DynaPDF manual.

See also

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


DynaPDF.GetEmbeddedFilesAsJSON   -   DynaPDF.GetFTextHeightEx

Feedback: Report problem or ask question.




Links
MBS Xojo PDF Plugins

Start Chat