PieceInfo Authoring and Inspection
A PieceInfo entry is the ISO 32000-1/2 14.5 Table 323 application-data dictionary: the owner dictionary — the catalogue 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 catalogue of a document being authored, whilst THotPDF.SetPagePieceInfo(PageIndex, ...) targets the dictionary of the zero-based page
THPDFPage.SetPieceInfo(ApplicationName, PrivateData, KeysAndValues, LastModifiedDate) is the authoring-time variant: it acts on the current page and takes no index; all three require PDF 1.3
Given 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; given private data alone, /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