PageRender - HTML to PDF

FREEMIUM
By RenderAPI
Updated 6 months ago
Tools
-/10
Popularity Score
-
Latency
-
Success Rate

PageRender - HTML to PDF API Documentation

Use our Powerful API to convert any HTML5-CSS3-Javascript webpage into a beautiful PDF. Customizable and fast API. JS, webfonts, SVG, canvas, Typekit ready.

Export an app or a catalog to PDF, convert HTML invoice or other documents into PDF, assess responsive design with custom viewport sizes, or just go for any other use case you have in mind : enjoy PageRender HTML/JS to PDF API.

Our rendering engine preserves text in PDF. Text remains selectable as long as no webfont is used.

Have a look at our PNG Screenshot API: PageRender Webpage screenshot, also available on Mashape.

Don't hesitate to contact us for more vitamins or for support.

View API Details
GET/pdf
GET/pdf

Convert your website into PDF

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Optional Parameters
filenameSTRING
OPTIONAL
ttlNUMBER
OPTIONALPDFs are cached to retrieve them faster. Specify the ttl (Time To Live) in seconds. Defaults to 2592000 (1 month).
urlSTRING
OPTIONALurl or html must be provided to render PDF.
langSTRING
OPTIONALSpecify the Accept-Language header. Defaults to "en-US,en;q=0.8".
user_agentSTRING
OPTIONALDefaults to "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_4) AppleWebKit/600.7.12 (KHTML, like Gecko) Version/8.0.7 Safari/600.7.12".
page_widthNUMBER
OPTIONALDefaults to 1414px.
page_heightNUMBER
OPTIONALDefaults to 1000px.
viewport_widthNUMBER
OPTIONALThe default value matches the page width.
viewport_heightNUMBER
OPTIONALThe default value matches the page height.
margin_leftNUMBER
OPTIONALDefaults to 0.
margin_topNUMBER
OPTIONALDefaults to 0.
margin_rightNUMBER
OPTIONALDefaults to 0.
margin_bottomNUMBER
OPTIONALDefaults to 0.
timeoutNUMBER
OPTIONALDelay the rendering of the PDF (useful for Single Page Application for instance). Specify the timeout in milliseconds. Defaults to 500.
zoomNUMBER
OPTIONALDefaults to 1.
printBOOLEAN
OPTIONALIf set to 1, render the PDF as a print device. Defaults to 0.
disable_jsBOOLEAN
OPTIONALIf set to 1, disables Javascript. Defaults to 0.
unique_tagSTRING
OPTIONALAll PDFs are cached by default. But you can specify a unique_tag to get a fresh one (e.g. timestamp string).
rendering_modeSTRING
OPTIONALIf not specified, the best rendering mode is automatically selected. Sometimes, you may prefer another rendering mode so you can force it. The rendering mode can be one of the following values : DEFAULT, EDGY.
htmlSTRING
OPTIONALInstead of using url, you can directly provide the html to render the PDF document. Just make sure all static assets are accessible via absolute urls or use <base> tag in your HTML.
Code Snippet
Response ExampleSchema

Install SDK for (Node.js)Unirest

OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication