Sign Up

Log In

PDF to PNG Rasterizer - convert PDF documents to images - free version

FREE
By mazira
Updated 11 hours ago
Data
6.2/10
Popularity Score
59479ms
Latency
-
Success Rate

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

This API consumes PDFs and outputs PNG images of the pages. Input can be via a POST upload, or you may use a GET request and pass the URL of a publicly accessible PDF.

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

For more input and output options we will soon release a paid version of this API.

View API Details

Supercharge your App

Discover and connect to thousands of APIs in the world's largest API Hub
POSTfor PDF upload
GETfor public PDF URLs
POSTfor PDF upload
Sign up to test this endpoint
Log in
Header Parameters
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
fileBINARY
REQUIRED
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.
Optional Parameters
resSTRING
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. The maximum value for the free version of this API is 120.
Request Snippet
unirest.post("https://mazira-pdf-to-png1.p.rapidapi.com/")
.header("X-RapidAPI-Key", "undefined")
.header("Content-Type", "application/x-www-form-urlencoded")
.send("res=undefined")
.send("output=<required>")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
Sample Response

loading...

Log inSign up

Install SDK for NodeJS

Installing

To utilize unirest for node.js install the the npm module:

$ npm install unirest

After installing the npm package you can now start simplifying requests like so:

var unirest = require('unirest');

Creating Request

unirest.post("https://mazira-pdf-to-png1.p.rapidapi.com/")
.header("X-RapidAPI-Key", "undefined")
.header("Content-Type", "application/x-www-form-urlencoded")
.send("res=undefined")
.send("output=<required>")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication

Sign up for free

to test this endpoint

Join the world’s largest API marketplace with over half a million developers and thousands of APIs.
DiscoverAPIs
Testfrom the browser
Connectusing code snippets
Managefrom one dashboard