Returned response can be used for polling until results are available and return an HTTP status code of 200. If application has a Callback URL specified, results will also be posted via webhooks.
Name | Required | Description |
---|---|---|
url |
The direct publicly accessible URL of the file to generate previews. This can be a temporary signed Amazon S3/Cloudfront URL or contain basic authentication credentials. |
|
sizes |
An array of sizes of the extracted thumbnails, in pixels. Expressed as widthxheight. Specifying only the width(e.g "300") will generate a thumbnail with a fixed width and varying height. You can also only shrink larger images to fit into the give size and never enlarge(e.g "300x400>"). |
|
format |
The format of the extracted thumbnails. Supported values are "jpg", "jpeg", and "png". |
|
metadata |
An array of string values of additional metadata to extract. Possible values are "ocr", "psd", "exif", "ocr", "checksum", "multimedia", "webpage", and "sketch". |
|
pages |
The document pages that you want to extract thumbnails for. You can specify a range or individual pages separated by commas. Example: "1-3" or "1,3,5". You can also specify the special value of "all" to extract all pages. Default value is "1". |
|
data |
A user-specified JavaScript object to attach key-value data. This is useful for storing additional structured information. As an example, you could store a unique identifier from your system that a FilePreviews response belongs to. |
|
uploader |
A JavaScript object containing settings for the AWS S3 uploader. Available options:
|
|
callback_url |
A URL that we will POST anytime results for requests previews are ready. Read more info about webhooks here. |
Returned response can be used for polling until results are available and return an HTTP status code of 200. If application has a Callback URL specified, results will also be posted via webhooks.