DynaPDF.CreateStructureTree
---------------------------

Creates a global structure tree that is required to create Tagged PDF files.

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

MBS( "DynaPDF.CreateStructureTree"; PDF ) 

**MBS**( **"DynaPDF.CreateStructureTree";** /\* Creates a global structure tree that is required to create Tagged PDF files. \*/  
**$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 OK or error.

### Description

Creates a global structure tree that is required to create Tagged PDF files.  
See dynapdf\_help.pdf manual for details.  
  
Required for PDF/A.  
See also [CreateStructureTree](https://www.monkeybreadsoftware.com/DynaPDF-Manual/CreateStructureTree.shtml) function in DynaPDF manual.

### Examples

Create structure tree:

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

- [DynaPDF.CreateSigField](DynaPDFCreateSigField.md)
- [DynaPDF.CreateStructureTreeEx](DynaPDFCreateStructureTreeEx.md)
- [DynaPDF.New](DynaPDFNew.md)
- [DynaPDF.SetPDFVersion](DynaPDFSetPDFVersion.md)

### Release notes

- **Version 13.1**
    - Added [DynaPDF.CreateStructureTreeEx](https://www.mbsplugins.eu/DynaPDFCreateStructureTreeEx.shtml) function.

### 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)
- [New in MBS FileMaker Plugin 13.1](https://www.mbsplugins.de/archive/2023-03-15/New_in_MBS_FileMaker_Plugin_13/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 bis 25](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.CreateSigFieldAP](DynaPDFCreateSigFieldAP.md) - [DynaPDF.CreateStructureTreeEx](DynaPDFCreateStructureTreeEx.md)

[HTML Version](DynaPDFCreateStructureTree.shtml)