GeneratePageThumbnails
Page properties and rendering
Description
Renders each selected page to an in-memory bitmap and attaches the result as that page's /Thumb image
Syntax
Function TPDFlib.GeneratePageThumbnails(Const PageRange: WideString; DPI: Double): Integer;Parameters
| PageRange | Page numbers and ranges such as 1,3,5-8; an empty value selects every page |
|---|---|
| DPI | Positive rendering resolution used for each thumbnail |
Return values
Returns the number of pages that received a thumbnail
Remarks
The method reuses one memory stream for the complete batch, creates no intermediate files, honours the selected renderer, reports per-page progress, and restores the selected page
See also
SetPageThumbnailFromStream, HasPageThumbnail, GetPageThumbnailInfo