PDFium Delphi Component Docs

BookmarkStyleFeaturesAvailable function

Unit: PDFium
Reports whether the loaded pdfium.dll exports FPDFBookmark_GetStyle

Syntax

function BookmarkStyleFeaturesAvailable: Boolean;

Parameters

None

Return Value

Boolean

Description

BookmarkStyleFeaturesAvailable loads the selected PDFium module when necessary and returns True when the optional FPDFBookmark_GetStyle entry point is exported

When the export is present 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 for bit 1 and posBold for bit 2

Without the export the Style set stays empty for every bookmark; nothing else about bookmark reading changes

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