GetPageThumbnailInfo

Page properties

Description

Reads the dimensions and component depth from one page thumbnail image stream

Syntax

Function TPDFlib.GetPageThumbnailInfo(Page: Integer; Out Width, Height, BitsPerComponent: Integer): Integer;

Parameters

PageOne-based page number
WidthReceives the thumbnail width in samples
HeightReceives the thumbnail height in samples
BitsPerComponentReceives /BitsPerComponent, or zero when it is absent

Return values

0The page is invalid, /Thumb is not a stream, or its dimensions are unusable
1Positive /Width and /Height values were read

Remarks

All output values are initialised to zero and the selected page is restored before the method returns

See also

HasPageThumbnail, GetPageThumbnailDataToStream, DeletePageThumbnail