function RenderPageThumbnail(PageIndex, MaxWidth, MaxHeight: Integer): TBitmap;
| PageIndex | Integer - One-based page index to render |
| MaxWidth | Integer - Maximum thumbnail width in pixels |
| MaxHeight | Integer - Maximum thumbnail height in pixels |
TBitmap, or nil when the document is inactive, the page index is invalid, or the requested size is not positiveThe method loads the requested page temporarily, preserves the page aspect ratio, renders the thumbnail on a white background, and closes the temporary page handle before returning
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;