DynaPDF.OpenTagEx
-----------------

Opens a new tag.

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

MBS( "DynaPDF.OpenTagEx"; PDF; Tag; Lang; AltText; Expansion; Attributes ) 

**MBS**( **"DynaPDF.OpenTagEx";** /\* Opens a new tag. \*/  
**$PDF**; /\* The PDF reference returned from [DynaPDF.New](DynaPDFNew.md). \*/   
**$Tag**; /\* The tag name to open.  
Possible tags: Art, Artifact, Annot, BibEntry, BlockQuote, Caption, Code, Div, Document, Figure, Form, Formula, H, H1, H2, H3, H4, H5, H6, Index, Link, List, ListElem, ListText, Note, P, Part, Quote, Reference, Section, Span, Table, TableDataCell, TableHeader, TableRow, TOC, TOCEntry.e.g. "p" \*/   
**$Lang**; /\* RFC 3066 laguage identifier.e.g. "en-US" \*/   
**$AltText**; /\* Alternate text. \*/   
**$Expansion**; /\* Expansion of abbrevations or acronyms. \*/   
**$Attributes**) /\* The attributes as JSON. \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| PDF | The PDF reference returned from [DynaPDF.New](DynaPDFNew.md). | $pdf |
| Tag | The tag name to open.   Possible tags: Art, Artifact, Annot, BibEntry, BlockQuote, Caption, Code, Div, Document, Figure, Form, Formula, H, H1, H2, H3, H4, H5, H6, Index, Link, List, ListElem, ListText, Note, P, Part, Quote, Reference, Section, Span, Table, TableDataCell, TableHeader, TableRow, TOC, TOCEntry. | "p" |
| Lang | RFC 3066 laguage identifier. | "en-US" |
| AltText | Alternate text. |  |
| Expansion | Expansion of abbrevations or acronyms. |  |
| Attributes | The attributes as JSON. |  |

### Result

Returns 1, 0 or error.

### Description

Opens a new tag.  
Opens a tag in the very same way as [DynaPDF.OpenTag](DynaPDFOpenTag.md) but supports additional parameters which can be set in a JSON (Javascript Object Notation) like format.   
The optional parameter Attributes is a JSON like string. The JSON parser in DynaPDF supports a few extensions to make the definition of additional attributes as easy as possible.   
See also [OpenTagEx](https://www.monkeybreadsoftware.com/DynaPDF-Manual/OpenTagEx.shtml) function in DynaPDF manual.

### See also

- [DynaPDF.New](DynaPDFNew.md)
- [DynaPDF.OpenTag](DynaPDFOpenTag.md)

### Release notes

- **Version 13.3**
    - Added [DynaPDF.AddDPartNode](https://www.mbsplugins.eu/DynaPDFAddDPartNode.shtml), [DynaPDF.CreateDPartRoot](https://www.mbsplugins.eu/DynaPDFCreateDPartRoot.shtml), [DynaPDF.DeleteWatermark](https://www.mbsplugins.eu/DynaPDFDeleteWatermark.shtml), [DynaPDF.GetLastTextOffset](https://www.mbsplugins.eu/DynaPDFGetLastTextOffset.shtml), [DynaPDF.HaveDPartRoot](https://www.mbsplugins.eu/DynaPDFHaveDPartRoot.shtml), [DynaPDF.MarkTemplateAsWatermark](https://www.mbsplugins.eu/DynaPDFMarkTemplateAsWatermark.shtml) and [DynaPDF.OpenTagEx](https://www.mbsplugins.eu/DynaPDFOpenTagEx.shtml) functions.

### Blog Entries

- [New in MBS FileMaker Plugin 13.3](https://www.mbsplugins.de/archive/2023-07-25/New_in_MBS_FileMaker_Plugin_13/monkeybreadsoftware_blog_filemaker)
- [Neues MBS Plugin 13.3 für Claris FileMaker](https://www.mbsplugins.de/archive/2023-07-18/Neues_MBS_Plugin_133_für_Clar/monkeybreadsoftware_blog_filemaker)
- [MBS Plugin 13.3 for Claris FileMaker](https://www.mbsplugins.de/archive/2023-07-18/MBS_Plugin_133_for_Claris_File/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 13.3pr2](https://www.mbsplugins.de/archive/2023-06-13/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)

Created 13th June 2023 , last changed 5th November 2023

  
[DynaPDF.OpenTag](DynaPDFOpenTag.md) - [DynaPDF.Optimize](DynaPDFOptimize.md)

[HTML Version](DynaPDFOpenTagEx.shtml)