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

FileNamePath to the image file used as the page thumbnail
PageOne-based page number that receives the /Thumb entry

Return values

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

Remarks

Use SetPageThumbnailFromFileEx when image import options are needed

See also

SetPageThumbnailFromFileEx, SetPageThumbnailFromStream, GetPageThumbnailInfo