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
| Page | One-based page number |
|---|---|
| Width | Receives the thumbnail width in samples |
| Height | Receives the thumbnail height in samples |
| BitsPerComponent | Receives /BitsPerComponent, or zero when it is absent |
Return values
| 0 | The page is invalid, /Thumb is not a stream, or its dimensions are unusable |
|---|---|
| 1 | Positive /Width and /Height values were read |
Remarks
All output values are initialized to zero and the selected page is restored before the method returns
See also
HasPageThumbnail, GetPageThumbnailDataToStream, DeletePageThumbnail