theme
HTML to PDF Converter
FREEMIUM
By petadata
Updated a year ago

HTML to PDF Converter API Documentation

This service converts web pages to PDF formats. You can specify additional parameters to customize conversion process. It runs on cloud-based, high-availability, fault-tolerant server farm.

Learn more about this API
GETConvertFromHtml
GETConvertFromUri
GETConvertFromUriAsUri
GETConvertFromHtml

Converts html code and returns byte array of pdf file

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
htmlContentSTRING
REQUIREDHtml code to convert
Optional Parameters
browserWidthNUMBER
OPTIONALPreferred browser width in pixels. Can be used to convert responsive web pages. Default: 1024
renderDelayNUMBER
OPTIONALThe time (in seconds) to delay before converting web page. Default: 0
browserHeightNUMBER
OPTIONALPreferred browser height in pixels. If you pass 0 service will convert whole webpage. Default: 800
Code Snippet
Install SDK
Response ExampleSchema

Install SDK for (Node.js)Unirest

OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication