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.AddDPartNode

Creates a DPart Node.

Component Version macOS Windows Linux Server iOS SDK
DynaPDF 13.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "DynaPDF.AddDPartNode"; PDF; Parent; FirstPage; LastPage { ; DPM } )   More

Parameters

Parameter Description Example Flags
PDF The PDF reference returned from DynaPDF.New. $pdf
Parent Parent node handle or -1. -1
FirstPage First page in range or -1. -1
LastPage Last page in range or -1. -1
DPM Optional Document Part Metadata (JSON like string) Optional

Result

Returns number or error.

Description

Creates a DPart Node.
DPart nodes can be used to add metadata to a single page or range of pages. In addition, DPart nodes can be nested to form a tree like structure.
Unlike XMP metadata streams which base on XML, Document Part Metadata (parameter DPM) is stored in PDF syntax. This type of metadata supports dictionaries, arrays, strings, name objects, numbers, and boolean values, or almost the entire range of PDF data types.
DPart nodes require a global root node that must be created with CreateDPartRoot() before this function can be called the first time.

See also AddDPartNode function in DynaPDF manual.

See also

Release notes

Blog Entries

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


DynaPDF.AddContinueText - DynaPDF.AddDeviceNProcessColorants

💬 Ask a question or report a problem