TBitmap for the current page or any requested pageproperty Thumbnail: TBitmap; // read only
function ExtractThumbnail(PageNumber: Integer): TBitmap;
function ThumbnailRawData: TBytes;
function ThumbnailDecodedData: TBytes;
Thumbnail decodes the current page’s optional /Thumb image into an owned TBitmap
ExtractThumbnail performs the same operation for any valid one-based page number without changing PageNumber and reuses the page's parsed scene within the configured LRU capacity
Both APIs return nil when the page carries no embedded thumbnail; a returned bitmap belongs to the caller, who must free it
ThumbnailRawData returns the current page’s embedded /Thumb bytes exactly as stored, without applying the image filters
ThumbnailDecodedData returns the same stream after its filters have been applied
Both byte accessors return an empty array when the page has no embedded thumbnail and raise EPdfError when no page is active
RenderPageThumbnail when the page has no /Thumb entryExtractThumbnail returns nil for an inactive document or an out-of-range page numberThumbnailRawData and ThumbnailDecodedData bypass the bitmap cache and read directly from the current page’s /Thumb stream
var Preview: TBitmap;
begin
Preview := Pdf1.ExtractThumbnail(3);
try
if Preview <> nil then
Image1.Picture.Assign(Preview);
finally
Preview.Free;
end;
end;