THotPDF.AddPortfolioFolder Method
function AddPortfolioFolder(const FolderPath, DisplayName,
Description: AnsiString): Boolean;
Adds a stable path-based collection folder and records its display name, description, and parent path
Parent folders must exist before children are added and duplicate paths return false
GetPortfolioFolderInfo returns folder metadata and immediate child count
Structure note: this legacy convenience API stores /Collection /Folders as an array of custom path dictionaries (/Type /CollectionFolder with /Path and /ParentPath). That shape is not the ISO 32000-2 folder model: Table 153 defines /Folders as a single indirect root folder dictionary, and Table 159 defines folders as /Type /Folder nodes with /ID, /Name and /Parent / /Child / /Next links, with files attached through <ID>filename keys in the EmbeddedFiles name tree. For a spec-conformant portfolio folder tree use EnsureCollectionRootFolder, AddCollectionChildFolder and AddDocumentAttachmentToCollectionFolder, read back with GetLoadedCollectionFolderTree; see Portfolio folder building