Run with Postman

HTML to PDF (1.0.0)

Generate a PDF document from a web page or an HTML string

PDF

Create a PDF file

Create a simple PDF file

This method allows you to create PDF from a give URL or an HTML string

Authorizations:
Request Body schema: application/json
html
string
Default: "<string>"

An HTML-formatted string to be rendered as a PDF file. Please note that if both 'html' and 'url' are set, the 'html' option will always have the priority and the latter will be ignored

url
string
Default: "<string>"

The source page for your PDF file

number or object (margin)

A white margin that will be applied to the PDF file

Responses

Request samples

Content type
application/json

Response samples

Content type
application/json
Example
{
  • "message": "No input provided",
  • "success": false,
  • "error": null
}