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;
Property ThumbDPI: Integer;The binding and row surface (AttachViewer, ItemCount, ItemText, ItemData, Viewer) is inherited from TPDFlibViewerPanel
Key members
ThumbnailCount | How 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 |
|---|---|
EnsureThumbnail | Returns 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 |
ThumbDPI | Configurable rendering resolution in DPI (clamped to 4..144, default 9); changing it clears cached miniatures and resizes row height for HiDPI displays |
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