THPDFCollectionColorsInfo Record

The five colour 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 colour their text

THotPDF.SetPortfolioColors writes those entries whose Present is true, and THotPDF.GetLoadedCollectionColors reads them back out of a loaded portfolio

THPDFCollectionRGBColor · Portfolio Folder Building and Collection State