HTML to PDF

FREEMIUM
By proapi
Updated 10 months ago
Business
-/10
Popularity
-
Latency
-
Success Rate

HTML to PDF API Documentation

Convert HTML Webpages to beautiful PDF-Files. Create PDF-Invoices, Documents or Flyers right from your App with our high quality PDF converter.

View API Details
GETHTML to PDF
GETHTML to PDF

Submit the URL of the HTML you want to convert. You can also provide a list of space-separated URLs that will be merged into the same PDF-File.

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
urlSTRING
REQUIREDThe URL of the HTML you want to convert into a PDF or a list of multiple URLs separated by space (%20).
Optional Parameters
dpiSTRING
OPTIONALchange the dpi of the document (default: 75)
outputSTRING
OPTIONALWhat to return: "data": binary data of pdf or "fileurl": url of generated pdf-file for download
marginNUMBER
OPTIONALmargin in millimeters on all 4 borders (default: 0)
margin-topNUMBER
OPTIONALmargin in millimeters on top border
margin-bottomNUMBER
OPTIONALmargin in millimeters on bottom border
margin-leftNUMBER
OPTIONALmargin in millimeters on left border
margin-rightNUMBER
OPTIONALmargin in millimeters on right border
grayscaleBOOLEAN
OPTIONALRender the pdf in greyscale (default: false)
formatSTRING
OPTIONALPaper format: A4, letter, A3, ... (default: A4)
viewportSTRING
OPTIONALSize of the "browser window" that renders your page (default: 1366x768)
Code Snippet
Install SDK
Response ExampleSchema

Install SDK for (Node.js)Unirest

OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication