Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 12.2   12.3   12.4   12.5   13.0   13.1   13.2   13.3   13.4   13.5    Statistic    FMM    Blog  

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

Release notes

Blog Entries

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


DynaPDF.GetXFAStreamCount - DynaPDF.HaveOpenDocument

💬 Ask a question or report a problem