SetPageThumbnailFromStream
Page properties
Description
Attaches an image read from a stream as the thumbnail for a page without adding that image to page content resources
Syntax
Delphi
Function TPDFlib.SetPageThumbnailFromStream(InStream: TStream; Page, Options: Integer): Integer;
Parameters
| InStream | Stream positioned at the image data to use as the thumbnail |
|---|---|
| Page | One-based page number that receives the /Thumb entry |
| Options | Image import options passed to the image decoder |
Return values
| 0 | The stream image could not be loaded or the page was invalid |
|---|---|
| 1 | The thumbnail image was attached to the page |
Remarks
The call preserves the currently selected drawing image and reads thumbnail dimensions through GetPageThumbnailInfo
See also
SetPageThumbnailFromFileEx, SetPageThumbnailFromString, GetPageThumbnailInfo