Quickstart
Convert your first HTML document to PDF.
Create an API key
Create a key at app.revecto.dev/keys, then export it:
export REVECTO_API_KEY=rvt_...Convert HTML to PDF
Post the document to /v1/convert. Each sample saves the PDF as hello.pdf.
curl https://api.eu.revecto.dev/v1/convert \
-H "Authorization: Bearer $REVECTO_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "engine": "chromium", "html": "<h1>Hello</h1>" }' \
--fail-with-body \
-o hello.pdfOpen the PDF
Open hello.pdf. If the request failed, the response body is JSON with a code; see Errors.