You can generate images of pages in documents.
Apryse's library provides a page thumbnail dialog which shows thumbnails of all PDF document pages. Fore more information, see thumbnail browser .
With PDFViewCtrl
, you can get a thumbnail Bitmap
image for each page in a PDF document.
The following example request thumbnail for page 3:
where pdfViewCtrl
is an instance of PDFViewCtrl
.
It is recommended you cancel all thumbnail requests once they are no longer needed. To cancel all thumbnail request, use PDFViewCtrl.cancelAllThumbRequests()
.
To create a PDF page thumbnail in multiple image formats.
Convert PDF to image (JPG, PNG, BMP, TIFF)
Full code sample illustrates how to use the built-in rasterizer in order to render PDF images on the fly and how to save resulting images in PNG and JPEG format.
More image format options:
e_rgba
- if transparent and color page;e_gray_alpha
- if transparent and gray page;e_rgb
- if opaque and color page;e_gray
- if opaque and gray page. NOTE that if page is set to be transparent (SetPageTransparent), the output color channels are already multiplied by the alpha channel.Did you find this helpful?
Trial setup questions?
Ask experts on DiscordNeed other help?
Contact SupportPricing or product questions?
Contact Sales