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 שבבעלות המתקשר, או nil כאשר המסמך אינו פעיל, אינדקס הדף לא תקין, או שהגודל המבוקש אינו חיוביThe 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;