PDF Portfolio Collections
HotPDF can turn embedded files into a PDF Portfolio with a named collection, an initial document, a viewer layout, typed schema columns, and per-file collection-item values
Create a collection
PDF.AddDocumentAttachment('report.pdf', 'Monthly report');
PDF.ConfigurePortfolio('Review package', 'D', 'report.pdf');
PDF.AddPortfolioSchemaField('Department', 'Department', cfsText, 0);
PDF.SetPortfolioItemMetadata('report.pdf', 'Department', 'Engineering');
ConfigurePortfolio accepts detail, tile, hidden, or custom view names D, T, H, and C
Schema keys use stable ASCII names, while display names and item values remain normal PDF strings
Schema field types
THPDFCollectionFieldSubtype supports text, date, number, file name, description, modification date, creation date, and size fields
Each field can define viewer order, visibility, and editability, while item values may carry an optional display prefix
Inspect a loaded collection
THotPDF.GetLoadedCollectionInfo returns the collection name, view, initial document, and schema field count
THotPDF.GetLoadedCollectionSchemaFieldCount reports the schema size, while THotPDF.GetLoadedCollectionSchemaFieldInfo returns each THPDFCollectionSchemaFieldInfo definition
THotPDF.GetLoadedCollectionItemMetadata exposes typed values and display prefixes without requiring direct PDF-object traversal
Reading-order diagnostics
Portfolio workflows can be combined with AnalyzeLoadedReadingOrder, whose THPDFReadingOrderDiagnostic entries classify each THPDFReadingOrderIssueKind without coupling accessibility review to collection metadata