THPDFCollectionColorsInfo Record
The five color entries of the /Collection /Colors dictionary of a PDF 2.0 portfolio (ISO 32000-2:2020 12.3.5 Table 155)
THPDFCollectionColorsInfo = record
Present: boolean;
Background: THPDFCollectionRGBColor;
CardBackground: THPDFCollectionRGBColor;
CardBorder: THPDFCollectionRGBColor;
PrimaryText: THPDFCollectionRGBColor;
SecondaryText: THPDFCollectionRGBColor;
end;
Each field is a THPDFCollectionRGBColor gated by its own Present flag: Background tints the portfolio view, CardBackground and CardBorder style the file cards, and PrimaryText and SecondaryText color their text
THotPDF.SetPortfolioColors writes the entries whose Present is true and THotPDF.GetLoadedCollectionColors reads them back from a loaded portfolio