SetPageThumbnailFromFileEx

Page properties

Description

Attaches an image file as the thumbnail for a page and passes image import options to the decoder

Syntax

Delphi

Function TPDFlib.SetPageThumbnailFromFileEx(Const FileName: WideString; Page, Options: Integer): Integer;

Parameters

FileNamePath to the image file used as the page thumbnail
PageOne-based page number that receives the /Thumb entry
OptionsImage import options passed to the same decoder used by AddImageFromFile

Return values

0The image could not be loaded or the page was invalid
1The thumbnail image was attached to the page

Remarks

The thumbnail image is stored as page metadata and is not selected as the current drawing image

See also

SetPageThumbnailFromFile, SetPageThumbnailFromStream, SetPageThumbnailFromString, HasPageThumbnail