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
| FileName | Path to the image file used as the page thumbnail |
|---|---|
| Page | One-based page number that receives the /Thumb entry |
| Options | Image import options passed to the same decoder used by AddImageFromFile |
Return values
| 0 | The image could not be loaded or the page was invalid |
|---|---|
| 1 | The 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