No UI — this host is a Gotenberg HTTP API. Copy a curl example below. Docs: gotenberg.dev
Confirm the service is up.
curl -sS https://pdf.suarify.my/health
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
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
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
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
DOCX / XLSX / PPTX via LibreOffice.
curl -sS -X POST https://pdf.suarify.my/forms/libreoffice/convert \ -F "files=@./document.docx" \ -o document.pdf
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
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