PDFium Delphi Component Docs

Bookmarks property

Component: TPdf  ·  Unit: PDFium
Returns every top-level outline entry with its navigation target, action, expansion state, descendants, path, and colour

Syntax

property Bookmarks: TBookmarks; // read only

Description

This read-only property returns the document outline as an array of TBookmark snapshots

Each record includes the direct Destination, action type, action destination or URI/file path, one-based target page, open state, descendant count, and optional bookmark colour

Requires Active to be True; use BookmarkChildren to enumerate one node’s immediate children

Remarks

Example

var
  Items: TBookmarks;
begin
  if Pdf1.Active then
  begin
    Items := Pdf1.Bookmarks;
    Memo1.Lines.Add('count: ' + IntToStr(Length(Items)));
  end;
end;

See Also

BookmarkChildren, HasBookmarkChildren