S
pdf.suarify.my
Gotenberg API · Suarify

Suarify PDF API

No UI — this host is a Gotenberg HTTP API. Copy a curl example below. Docs: gotenberg.dev

Health HTML → PDF URL → PDF Office → PDF Merge PDFs Letter size + background

1. Health check

Confirm the service is up.

curl -sS https://pdf.suarify.my/health

2. HTML file → PDF

File must be named index.html.

curl -sS -X POST https://pdf.suarify.my/forms/chromium/convert/html \
  -F "files=@./index.html;filename=index.html" \
  -o output.pdf

3. HTML → PDF (Letter + print background)

Useful for invoices/receipts with colors and backgrounds.

curl -sS -X POST https://pdf.suarify.my/forms/chromium/convert/html \
  -F "files=@./index.html;filename=index.html" \
  -F "paperWidth=8.5" \
  -F "paperHeight=11" \
  -F "printBackground=true" \
  -F "marginTop=0" \
  -F "marginBottom=0" \
  -F "marginLeft=0" \
  -F "marginRight=0" \
  -o invoice.pdf

4. URL → PDF

Render a live webpage to PDF.

curl -sS -X POST https://pdf.suarify.my/forms/chromium/convert/url \
  -F "url=https://example.com" \
  -F "printBackground=true" \
  -o page.pdf

5. HTML + local assets (CSS / images)

Upload extra files in the same form. Reference them by filename only in HTML.

curl -sS -X POST https://pdf.suarify.my/forms/chromium/convert/html \
  -F "files=@./index.html;filename=index.html" \
  -F "files=@./styles.css;filename=styles.css" \
  -F "files=@./logo.png;filename=logo.png" \
  -F "printBackground=true" \
  -o branded.pdf

6. Office document → PDF

DOCX / XLSX / PPTX via LibreOffice.

curl -sS -X POST https://pdf.suarify.my/forms/libreoffice/convert \
  -F "files=@./document.docx" \
  -o document.pdf

7. Merge PDFs

Combine multiple PDFs into one.

curl -sS -X POST https://pdf.suarify.my/forms/pdfengines/merge \
  -F "files=@./a.pdf" \
  -F "files=@./b.pdf" \
  -o merged.pdf

8. Pipe HTML from stdin

Quick one-liner without saving a file first.

echo '<html><body><h1>Hello Suarify</h1></body></html>' \
  | curl -sS -X POST https://pdf.suarify.my/forms/chromium/convert/html \
      -F "files=@-;filename=index.html" \
      -o hello.pdf

Base URL: https://pdf.suarify.my · Official routes: Gotenberg docs