Generate a PDF document from a web page or an HTML string
This method allows you to create PDF from a give URL or an HTML string
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 |
{
}
{- "message": "No input provided",
- "success": false,
- "error": null
}