PieceInfo Authoring and Inspection
A PieceInfo entry is the ISO 32000-1/2 14.5 Table 323 application-data dictionary: the owner dictionary — the catalog or a page — carries /PieceInfo/<ApplicationName> sub-dictionaries, each with /LastModified and /Private, and the owner itself is stamped with /LastModified
Writing members
THotPDF.SetCatalogPieceInfo(ApplicationName, PrivateData, KeysAndValues, LastModifiedDate) applies the entry to the catalog of a document being authored, and THotPDF.SetPagePieceInfo(PageIndex, ...) targets the dictionary of the zero-based page
THPDFPage.SetPieceInfo(ApplicationName, PrivateData, KeysAndValues, LastModifiedDate) is the authoring-time variant acting on the current page without an index; all three require PDF 1.3
With key-and-value pairs the writer emits a /Private dictionary holding /Data plus every pair, and each pair is duplicated directly in the application dictionary; with only private data, /Private is written as a bare string
Reading members
THotPDF.GetLoadedCatalogPieceInfo and THotPDF.GetLoadedPagePieceInfo(PageIndex) return a THPDFPieceInfoEntryArray — one THPDFPieceInfoEntry per application with ApplicationName, LastModified, PrivateData and the remaining Properties as THPDFPieceInfoKeyValue records in a THPDFPieceInfoKeyValueArray
THotPDF.AddLoadedPagePieceInfo is the older page-level writer of the same mechanism