all-about-apikey/html2pdf
Muhammad Daffa 7372a52709 Fix repository structure and add todolist 2022-07-23 20:53:29 +07:00
..
README.md Fix repository structure and add todolist 2022-07-23 20:53:29 +07:00

README.md

Html2PDF

Description

HTML/URL to PDF

Example Request

  • Curl
curl "https://api.html2pdf.app/v1/generate?url=https://example.com&apiKey={{token}}"
  • Raw
GET /v1/generate?url=https://example.com&apiKey={{token}} HTTP/1.1
Host: api.html2pdf.app

Response

  • Success
Will download PDF file of example.com
  • Error
{
    "errorCode":6,
    "message":"Unauthorized"
}

Regex

[a-zA-Z0-9]{64}

Example API key

BZyM5NrOFggEKScKxgXksF3nRHxTaJS8omSqcrE2oa7x7RekATlVYeJZ9BZGUrQd