DynaPDF.SetTextScaling
----------------------

Sets scaling for text.

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

MBS( "DynaPDF.SetTextScaling"; PDF; Value ) 

**MBS**( **"DynaPDF.SetTextScaling";** /\* Sets scaling for text. \*/  
**$PDF**; /\* The PDF reference returned from [DynaPDF.New](DynaPDFNew.md). \*/   
**$Value**) /\* The Horizontal text scaling.e.g. 100 \*/ 

### Parameters

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

### Result

Returns OK or error.

### Description

Sets scaling for text.  
The scaling value adjusts the width of glyphs by stretching or compressing them in the horizontal direction. Its value is specified as a percentage of the normal width of the glyphs, with 100 being the normal width.  
Default value = 100  
  
See also [DynaPDF.GetTextScaling](DynaPDFGetTextScaling.md).  
See also [SetTextScaling](https://www.monkeybreadsoftware.com/DynaPDF-Manual/SetTextScaling.shtml) function in DynaPDF manual.

### Examples

Set scaling to 200%

 MBS ( "DynaPDF.SetTextScaling"; $PDF ; 200 )  
### See also

- [DynaPDF.GetTextScaling](DynaPDFGetTextScaling.md)
- [DynaPDF.New](DynaPDFNew.md)
- [DynaPDF.SetWordSpacing](DynaPDFSetWordSpacing.md)

This function checks for a license.

Created 18th August 2014 , last changed 18th August 2014

  
[DynaPDF.SetTextRise](DynaPDFSetTextRise.md) - [DynaPDF.SetTransparentColor](DynaPDFSetTransparentColor.md)

[HTML Version](DynaPDFSetTextScaling.shtml)