PDF Maker Server

This service converts raw HTML or a reachable URL into a PDF document. Send a form-data request to POST /print with an API-Key header.

Endpoint

  • Method: POST
  • Path: /v1/pdf/print
  • Header: API-Key: <secret>
  • Body type: application/x-www-form-urlencoded or multipart/form-data
  • Response: application/pdf

Request Body content:

One of the following:

url=https://example.com/document

Or:

htmlFile=[File Blob of type text/html]

Or:

html=%3C!DOCTYPE%20html%3E%3Chtml%20lang%3D%22en%22%3E%3Cbody%3EMy%20Page%3C%2Fbody%3E%3C%2Fhtml%3E

Optional:

filename=document.pdf
download=true

Request Rules

  • Provide exactly one of htmlFile, html or url.
  • The response body is returned as application/pdf.
  • Requests time out after 30 seconds.