DynaPDF.GetLeading
------------------

The function returns the current leading.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [DynaPDF](component_DynaPDF.md) | [3.1](newinversion31.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "DynaPDF.GetLeading"; PDF ) 

**MBS**( **"DynaPDF.GetLeading";** /\* The function returns the current leading. \*/  
**$PDF**) /\* The PDF reference returned from [DynaPDF.New](DynaPDFNew.md). \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| PDF | The PDF reference returned from [DynaPDF.New](DynaPDFNew.md). | $pdf |

### Result

Returns leading value.

### Description

The function returns the current leading.   
The leading is the distance between two text lines. The default leading in PDF is the font size. The property is used by the function [DynaPDF.AddContinueText](DynaPDFAddContinueText.md) and [DynaPDF.WriteFText](DynaPDFWriteFText.md). A value of 0 determines that the font size should be used as leading, this is the default behavior.  
Default value = 0  
See also [GetLeading](https://www.monkeybreadsoftware.com/DynaPDF-Manual/GetLeading.shtml) function in DynaPDF manual.

### See also

- [DynaPDF.AddContinueText](DynaPDFAddContinueText.md)
- [DynaPDF.GetDescent](DynaPDFGetDescent.md)
- [DynaPDF.GetMetadata](DynaPDFGetMetadata.md)
- [DynaPDF.GetOpacity](DynaPDFGetOpacity.md)
- [DynaPDF.New](DynaPDFNew.md)
- [DynaPDF.SetLeading](DynaPDFSetLeading.md)
- [DynaPDF.WriteFText](DynaPDFWriteFText.md)

This function checks for a license.

Created 18th August 2014 , last changed 3th February 2021

  
[DynaPDF.GetLastTextPosYAbs](DynaPDFGetLastTextPosYAbs.md) - [DynaPDF.GetLineWidth](DynaPDFGetLineWidth.md)

[HTML Version](DynaPDFGetLeading.shtml)