THPDFCollectionColorsInfo 記錄
PDF 2.0 portfolio /Collection /Colors 字典的五個顏色項目(ISO 32000-2:2020 12.3.5 表 155)
THPDFCollectionColorsInfo = record
Present: boolean;
Background: THPDFCollectionRGBColor;
CardBackground: THPDFCollectionRGBColor;
CardBorder: THPDFCollectionRGBColor;
PrimaryText: THPDFCollectionRGBColor;
SecondaryText: THPDFCollectionRGBColor;
end;
每個欄位都是一個 THPDFCollectionRGBColor,由各自的 Present 旗標把關:Background 替 portfolio 檢視上色,CardBackground 與 CardBorder 決定檔案卡片的外觀,PrimaryText 和 SecondaryText 則管卡片文字的顏色
THotPDF.SetPortfolioColors 只會寫入 Present 為 true 的項目,THotPDF.GetLoadedCollectionColors 再從已載入的 portfolio 把它們讀回來