Document Rasterizer - convert PDF PPT etc to images

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

Document Rasterizer - convert PDF PPT etc to images API Documentation

This API consumes documents in various formats and outputs PNG or TIFF images of the pages. Input is via a multipart POST.

Images of the pages can be retrieved individually using a session token. Options allow for specifying raster resolution and image quality.

View API Details
GETdocument metadata
POSTdocument
GETrastered image
GETdocument metadata

Used to retrieve information about document length and endpoints. Same information as returned from POST.

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
idSTRING
REQUIREDThe document ID returned from the POST
Code Snippet
unirest.get("https://mazira-rasterizer.p.rapidapi.com/11427-5723-srnpc9")
.header("X-RapidAPI-Host", "mazira-rasterizer.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
Sample Response
General
Request URL: https://mazira-rasterizer.p.rapidapi.com/{id}
Request Method: GET
Response Headers
Response Body

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.get("https://mazira-rasterizer.p.rapidapi.com/11427-5723-srnpc9")
.header("X-RapidAPI-Host", "mazira-rasterizer.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication