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

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