SetPageThumbnailFromString

Page properties

Description

Attaches image bytes stored in an AnsiString as the thumbnail for a page

Syntax

Delphi

Function TPDFlib.SetPageThumbnailFromString(Const Source: AnsiString; Page, Options: Integer): Integer;

Parameters

SourceBinary image data stored in an AnsiString
PageOne-based page number that receives the /Thumb entry
OptionsImage import options passed to the image decoder

Return values

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

Remarks

This is the in-memory companion to SetPageThumbnailFromFileEx and SetPageThumbnailFromStream

See also

SetPageThumbnailFromFileEx, SetPageThumbnailFromStream, HasPageThumbnail