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
| Source | Binary image data stored in an AnsiString |
|---|---|
| Page | One-based page number that receives the /Thumb entry |
| Options | Image import options passed to the image decoder |
Return values
| 0 | The source image could not be loaded or the page was invalid |
|---|---|
| 1 | The thumbnail image was attached to the page |
Remarks
This is the in-memory companion to SetPageThumbnailFromFileEx and SetPageThumbnailFromStream
See also
SetPageThumbnailFromFileEx, SetPageThumbnailFromStream, HasPageThumbnail