PDFium Component Docs

מתודת RenderPageThumbnail

Component: TPdf  ·  Unit: PDFium
מרנדר כל דף שממוספר מ-1 אל bitmap שמתאים בתוך גבולות התמונה הממוזערת המבוקשת

Syntax

function RenderPageThumbnail(PageIndex, MaxWidth, MaxHeight: Integer): TBitmap;

Parameters

PageIndexInteger - One-based page index to render
MaxWidthInteger - Maximum thumbnail width in pixels
MaxHeightInteger - Maximum thumbnail height in pixels

Return Value

TBitmap שבבעלות המתקשר, או nil כאשר המסמך אינו פעיל, אינדקס הדף לא תקין, או שהגודל המבוקש אינו חיובי

Description

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

Remarks

Example

Bmp := Pdf1.RenderPageThumbnail(3, 180, 240);
try
  if Bmp <> nil then
    Image1.Picture.Assign(Bmp);
finally
  Bmp.Free;
end;

See Also

TPdf.RenderPage, TPdf.Thumbnail, TPdf.PageCount