PDF to PNG Rasterizer - convert PDF documents to images

FREEMIUM
By mazira
Updated 6 months ago
Data
-/10
Popularity Score
-
Latency
-
Success Rate

PDF to PNG Rasterizer - convert PDF documents to images API Documentation

This API consumes PDFs and outputs PNG images of the pages. Input can be via a POST upload, or you may pas the URL of a publicly accessible PDF and the service will download it.

PNGs of the pages can be retrieved individually using a session token, or all at once as Base64 data in JSON or HTML. Options allow specifying an image quality.

View API Details
GETfor public PDF URLs
POSTfor PDF upload
GETfor public PDF URLs
Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
outputSTRING
REQUIREDThe desired output format. Set to "json" to retrieve a JSON array of Base64 encoded data. Set to "html" to retrieve a web page with embedded images.
fileSTRING
REQUIREDA URL encoded string of a publicly-accessible PDF file
Optional Parameters
qualityNUMBER
OPTIONALAn integer indicating the rasterization quality of the image. Possible values are 1, 2, 3 or 4. Higher numbers mean higher quality images, but longer processing time.
png8BOOLEAN
OPTIONALIf true, the PNGs colorspace is set to 8 bits. The color palette is optimized for the image. Default: false.
resNUMBER
OPTIONALThe rasterization resolution, in pixels-per-inch. For example, a PDF that is 8.5 inches wide, rasterized at 72 PPI, will produce an image 612 pixels wide. Default value is 72.
Code Snippet
Response ExampleSchema

Install SDK for (Node.js)Unirest

OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication