DynaPDF.HaveDPartRoot
---------------------

Checks whether the PDF file in memory contains a DPartRoot dictionary.

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

MBS( "DynaPDF.HaveDPartRoot"; PDF ) 

**MBS**( **"DynaPDF.HaveDPartRoot";** /\* Checks whether the PDF file in memory contains a DPartRoot dictionary. \*/  
**$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 1, 0 or error.

### Description

Checks whether the PDF file in memory contains a DPartRoot dictionary.  
DPart stands for Document Parts. DParts are a feature of PDF/VT, a PDF format for the printing industry.  
The function should be used to determine whether a DPart structure is already in memory, before calling CreateDPartRoot() since the function would fail if this is the case.  
An existing DPart structure can be extended with additional DPart nodes, but it is not yet possible to edit existing nodes.  
  
If the document contains a DPartRoot dictionary, the return value is 1 or 0 otherwise.  
See also [HaveDPartRoot](https://www.monkeybreadsoftware.com/DynaPDF-Manual/HaveDPartRoot.shtml) function in DynaPDF manual.

### See also

- [DynaPDF.CreateDPartRoot](DynaPDFCreateDPartRoot.md)
- [DynaPDF.New](DynaPDFNew.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)
- [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 13th June 2023

  
[DynaPDF.GetXFAStreamCount](DynaPDFGetXFAStreamCount.md) - [DynaPDF.HaveOpenDocument](DynaPDFHaveOpenDocument.md)

[HTML Version](DynaPDFHaveDPartRoot.shtml)