TPDFlibThumbnailBar

Viewer

Description

TPDFlibThumbnailBar (unit Lib\PDFlibViewer.pas, added in v3.128.0) is a thumbnail strip for TPDFlibViewer. It shows one miniature per page, rendered lazily at a small fixed DPI as rows scroll into view; clicking a thumbnail navigates the attached viewer to that page

Syntax

Delphi

Function ThumbnailCount: Integer;
Function EnsureThumbnail(APage: Integer): TBitmap;

The binding and row surface (AttachViewer, ItemCount, ItemText, ItemData, Viewer) is inherited from TPDFlibViewerPanel

Key members

ThumbnailCountHow many thumbnails the strip currently holds; matches the attached document's page count after the automatic reload and is 0 before a document is attached
EnsureThumbnailReturns the page's miniature, rendering it on first use; nil when no document is attached or the page is out of range. The returned bitmap is owned by the panel

Remarks

Miniatures are produced through the attached viewer's library instance, so the strip follows the same renderer selection as the viewer. Combine it with TPDFlibOutlineViewer and TPDFlibSearchPanel to assemble a classic reader sidebar

See also

TPDFlibViewerPanel, TPDFlibViewer, TPDFlibOutlineViewer, TPDFlibSearchPanel