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.5   10.0   10.1   10.2   10.3   10.4   10.5   11.0   11.1   11.2    Statistic    FMM    Blog  

DynaPDF.SetLeading

Sets text leading.

Component Version macOS Windows Linux Server iOS SDK
DynaPDF 3.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "DynaPDF.SetLeading"; PDF; leading )   More

Parameters

Parameter Description Example
PDF The PDF reference returned from DynaPDF.New. $pdf
leading New leading size or zero. 0

Result

Returns OK or error message.

Description

Sets text leading.
The function sets the leading that is used by the functions DynaPDF.AddContinueText and DynaPDF.WriteFText to calculate the distance between two text lines. The default leading in PDF is the font size. A value of 0 determines that the font size should be used as leading, this is the default behavior.

See also SetLeading function in DynaPDF manual.

Examples

Set line height:

Set Variable [$r; Value:MBS("DynaPDF.SetLeading"; $pdf; 18)]

See also

Example Databases

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


DynaPDF.SetLanguage - DynaPDF.SetLineJoinStyle

Feedback: Report problem or ask question.