pdfPreview()
Overview
public void function pdfPreview(
required string filePath
, string scale
, string resolution
, string format
, string pages
, string transparent
, numeric width = 300
, struct fileProperties
)
Generates an native image from the first page of the provided PDF binary
Arguments
| Name | Type | Required | Description |
|---|---|---|---|
| filePath | string | Yes | |
| scale | string | No | Size of the thumbnail relative to the source page. The value represents a percentage from 1 through 100. |
| resolution | string | No | Native Image quality used to generate thumbnail native images |
| format | string | No | File type of thumbnail native image output |
| pages | string | No | Page or pages in the source PDF document on which to perform the action. You can specify multiple pages and page ranges as follows: "1,6-9,56-89,100, 110-120". |
| transparent | string | No | (format="png" only) Specifies whether the native image background is transparent or opaque |
| width | numeric | No (default=300) | |
| fileProperties | struct | No |