POST
/
v1
/
pdf
Create PDF
curl --request POST \
  --url https://api.pdfecho.com/v1/pdf \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '{
  "compliance": {
    "gdpr": false,
    "hipaa": false
  },
  "disable_javascript": false,
  "filename": "<string>",
  "format": "a4",
  "margin": {
    "top": "<string>",
    "right": "<string>",
    "bottom": "<string>",
    "left": "<string>"
  },
  "pages": "<string>",
  "source": "<string>",
  "storage": {
    "provider": "pdfecho",
    "filename": "<string>"
  },
  "webhook": "<string>",
  "zoom": 123
}'

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Headers

pe-test-mode
boolean
default:false

When set to true, the request will not consume any credits/coins from the account, but the generated PDF will include a watermark. When set to false or omitted, credits will be consumed and no watermark will be applied.

Body

application/json