SetPageThumbnailFromFile
Page properties
Description
Attaches an image file as the thumbnail for a page using default image import options
Syntax
Delphi
Function TPDFlib.SetPageThumbnailFromFile(Const FileName: WideString; Page: Integer): Integer;
Parameters
| FileName | Path to the image file used as the page thumbnail |
|---|---|
| Page | One-based page number that receives the /Thumb entry |
Return values
| 0 | The image could not be loaded or the page was invalid |
|---|---|
| 1 | The thumbnail image was attached to the page |
Remarks
Use SetPageThumbnailFromFileEx when image import options are needed
See also
SetPageThumbnailFromFileEx, SetPageThumbnailFromStream, GetPageThumbnailInfo