Skip to content

Latest commit

 

History

History
43 lines (38 loc) · 777 Bytes

README.md

File metadata and controls

43 lines (38 loc) · 777 Bytes

Description

HTML/URL to PDF

Example Request

  • Curl
curl "https://api.pdflayer.com/api/convert?access_key={{token}}&document_url=https://pdflayer.com/downloads/invoice.html"
  • Raw
GET /api/convert?access_key={{token}}&document_url=https://pdflayer.com/downloads/invoice.html HTTP/1.1
Host: api.pdflayer.com
...

Response

  • Success
Automatically download pdf
  • Error
{
    "success":false,
    "error": {
        "code":101,
        "type":"invalid_access_key",
        "info":"You have not supplied a valid API Access Key. [Technical Support: [email protected]]"
    }
}

Regex

[a-z0-9]{32}

Example API key

tue3sv9hzsey1me4l7fwq3t46u5k8wag