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

InStreamStream positioned at the image data to use as the thumbnail
PageOne-based page number that receives the /Thumb entry
OptionsImage import options passed to the image decoder

Return values

0The stream image could not be loaded or the page was invalid
1The 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