function RenderPageThumbnail(PageIndex, MaxWidth, MaxHeight: Integer): TBitmap;
function RenderPageThumbnail(PageIndex, MaxWidth, MaxHeight: Integer; Rotation: TRotation; Options: TRenderOptions; Background: TColor; const ColorScheme: TPdfColorScheme): TBitmap;
| PageIndex | Integer - One-based page index to render |
| MaxWidth | Integer - Maximum thumbnail width in pixels |
| MaxHeight | Integer - Maximum thumbnail height in pixels |
| Rotation | TRotation - Additional clockwise render rotation |
| Options | TRenderOptions - Native PDFium render flags included in the cache key |
| Background | TColor - Bitmap background colour |
| ColorScheme | TPdfColorScheme - Optional low-vision path and text colour overrides |
TBitmap, or nil when the document is inactive, the page index is invalid, or the requested size is not positiveThe short overload preserves the page aspect ratio and renders on a white background, while the full overload controls rotation, flags, background, and low-vision colours
Both overloads reuse deep internal bitmap copies through the unified thumbnail LRU and return a distinct caller-owned TBitmap on every call
It does not change PageNumber, replace the current loaded page, or fire page-change notifications
TPdf instanceBmp := Pdf1.RenderPageThumbnail(3, 180, 240);
try
if Bmp <> nil then
Image1.Picture.Assign(Bmp);
finally
Bmp.Free;
end;