PDFium Delphi Component Docs

BookmarkStyleFeaturesAvailable function

Unit: PDFium
Indicates whether the loaded pdfium.dll provides the FPDFBookmark_GetStyle export

Syntax

function BookmarkStyleFeaturesAvailable: Boolean;

Parameters

None

Return Value

Boolean

Description

BookmarkStyleFeaturesAvailable loads the selected PDFium module when needed and returns True if the optional FPDFBookmark_GetStyle entry point is present among the module's exports

When the export is available, every TBookmark produced by Bookmarks, Bookmark, BookmarkChildren and BookmarkFrom carries the outline item's /F text flags (ISO 32000-1 Table 153) in its Style set: posItalic stands for bit 1 and posBold for bit 2

Without the export, Style remains empty for every bookmark; bookmark reading is otherwise unaffected

Remarks

Example

if BookmarkStyleFeaturesAvailable and (posBold in Pdf.Bookmarks[0].Style) then
  TreeView1.Items[0].Font.Style := [fsBold];

See Also

TPdf.Bookmarks, TPdf.Bookmark, AttachmentRelationshipFeaturesAvailable, BezierControlPointFeaturesAvailable