THPDFPortfolioFolderInfo Record
Describes one portfolio folder: its path, display name, description, and direct child folder count
Declaration
THPDFPortfolioFolderInfo= record
Path: AnsiString;
DisplayName: AnsiString;
Description: AnsiString;
ChildCount: Integer;
end;
Unit
HPDFDoc
Fields
| Field | Purpose |
|---|---|
Path | Folder path exactly as requested, matching the /Path entry of the collection folder dictionary |
DisplayName | Value of the folder /Name entry shown by portfolio-aware viewers |
Description | Value of the folder /Desc entry, empty when the folder was created without one |
ChildCount | Number of folders whose /ParentPath equals this folder's path |
Usage notes
- Fill it with
GetPortfolioFolderInfo, which returns false and leaves a defaulted record when the path does not exist ChildCountcounts immediate subfolders only; walk each child path to enumerate a whole subtree- Create folders with
AddPortfolioFolder, which requires the parent folder to exist for nested paths