DynaPDF.SetLanguage
-------------------

Specifies the language of the document.

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

MBS( "DynaPDF.SetLanguage"; PDF; Language ) 

**MBS**( **"DynaPDF.SetLanguage";** /\* Specifies the language of the document. \*/  
**$PDF**; /\* The PDF reference returned from [DynaPDF.New](DynaPDFNew.md). \*/   
**$Language**) /\* The new language tag.e.g. "en-US" \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| PDF | The PDF reference returned from [DynaPDF.New](DynaPDFNew.md). | $pdf |
| Language | The new language tag. | "en-US" |

### Result

Returns OK or error.

### Description

Specifies the language of the document.   
The document's language should always be set when creating Tagged PDF files or Interactive Forms. The spell check feature in Adobe's Acrobat depends on the properly defined document language.  
See dynapdf\_help.pdf manual for details.  
See also [SetLanguage](https://www.monkeybreadsoftware.com/DynaPDF-Manual/SetLanguage.shtml) function in DynaPDF manual.

### Examples

Set language:

 Set Variable \[$r ; Value:MBS ("DynaPDF.SetLanguage"; $pdf ; "en-US")\]  
### See also

- [DynaPDF.GetLanguage](DynaPDFGetLanguage.md)
- [DynaPDF.GetOCGContUsage](DynaPDFGetOCGContUsage.md)
- [DynaPDF.New](DynaPDFNew.md)
- [DynaPDF.SetPDFVersion](DynaPDFSetPDFVersion.md)

### Example Databases

- [DynaPDF/Convert to PDFA](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/DynaPDF/Convert%20to%20PDFA.shtml#1ScriptAnchor_)
- [DynaPDF/Create Text as PDFA](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/DynaPDF/Create%20Text%20as%20PDFA.shtml#2ScriptAnchor_)
- [DynaPDF/Invoice/Invoice](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/DynaPDF/Invoice/Invoice.shtml#3ScriptAnchor_)
- [DynaPDF/Scan with WIA to PDF](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/DynaPDF/Scan%20with%20WIA%20to%20PDF.shtml#12ScriptAnchor_)
- [DynaPDF/ZUGFeRD and Facture-X/ZUGFeRD Invoice](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/DynaPDF/ZUGFeRD%20and%20Facture-X/ZUGFeRD%20Invoice.shtml#2ScriptAnchor_)
- [DynaPDF/ZUGFeRD and Facture-X/ZUGFeRD Rechnung erstellen](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/DynaPDF/ZUGFeRD%20and%20Facture-X/ZUGFeRD%20Rechnung%20erstellen.shtml#9ScriptAnchor_)

### Blog Entries

- [Create PDF/UA with DynaPDF in FileMaker](https://www.mbsplugins.de/archive/2026-05-27/Create_PDFUA_with_DynaPDF_in_F/monkeybreadsoftware_blog_filemaker)
- [FileMaker with ZUGFeRD 2.0 and Factur-X](https://www.mbsplugins.de/archive/2019-06-14/FileMaker_with_ZUGFeRD_20_and_/monkeybreadsoftware_blog_filemaker)
- [How to Convert a PDF document to a PDF/A](https://www.mbsplugins.de/archive/2019-03-18/How_to_Convert_a_PDF_document_/monkeybreadsoftware_blog_filemaker)
- [Creating PDF/A in FileMaker with ZUGFeRD standard](https://www.mbsplugins.de/archive/2018-04-05/Creating_PDFA_in_FileMaker_wit/monkeybreadsoftware_blog_filemaker)
- [Creating PDF/A in FileMaker with ZUGFeRD standard](https://www.mbsplugins.de/archive/2017-03-07/Creating_PDFA_in_FileMaker_wit/monkeybreadsoftware_blog_filemaker)

### FileMaker Magazin

- [Ausgabe 1/2018, Seite 24](https://filemaker-magazin.de/neuigkeit/3981-Appetithappen-FMM_201801)

This function checks for a license.

Created 4th November 2014 , last changed 18th June 2016

  
[DynaPDF.SetJPEGQuality](DynaPDFSetJPEGQuality.md) - [DynaPDF.SetLeading](DynaPDFSetLeading.md)

[HTML Version](DynaPDFSetLanguage.shtml)