Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

DynaPDF.HaveDPartRoot

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

Component Version macOS Windows Linux Server iOS SDK
DynaPDF 13.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "DynaPDF.HaveDPartRoot"; PDF )   More

Parameters

Parameter Description Example
PDF The PDF reference returned from DynaPDF.New. $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 function in DynaPDF manual.

See also

Release notes

Blog Entries

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


DynaPDF.GetXFAStreamCount - DynaPDF.HaveOpenDocument