function BookmarkStyleFeaturesAvailable: Boolean;
BooleanBookmarkStyleFeaturesAvailable 在必要时加载所选的 PDFium 模块,并在可选的 FPDFBookmark_GetStyle 入口点已导出时返回 True
该导出存在时,Bookmarks、Bookmark、BookmarkChildren 和 BookmarkFrom 产出的每个 TBookmark 都会在其 Style 集合中携带大纲项的 /F 文本标志(ISO 32000-1 Table 153):bit 1 对应 posItalic,bit 2 对应 posBold
缺少该导出时,所有书签的 Style 集合都保持为空;书签读取的其余行为一概不变
TPdfOutlineStyle 与 FPdfCompress 中 Pascal 侧 TPdfOutlineEditor 写入的是同一个集合类型,因此编辑器写出的样式可以通过原生 API 读回if BookmarkStyleFeaturesAvailable and (posBold in Pdf.Bookmarks[0].Style) then
TreeView1.Items[0].Font.Style := [fsBold];