Generate your first PDF.

Try a sample in your browser, run the PDF API locally, or deploy it to Vercel.

Choose how to run PressJet

Start the published Beta 7 API. You need Docker, OpenSSL and curl.

Shell
export PRESSJET_API_KEY="$(openssl rand -hex 32)"
docker run --rm --detach --name pressjet-quickstart \
  --publish 127.0.0.1:8080:8080 \
  --env PRESSJET_API_KEY \
  ghcr.io/tonysantana1492/pressjet:0.1.0-beta.7

Check the API

Shell
curl --fail-with-body http://127.0.0.1:8080/health

Continue when the response includes "status":"ok".

Render the sample invoice

Save the request and run this command from the same folder and terminal.

Shell · saves invoice.pdf
curl --fail-with-body http://127.0.0.1:8080/v1/html \
  -H "Authorization: Bearer $PRESSJET_API_KEY" \
  -H "Content-Type: application/json" \
  --data-binary @invoice-request.json \
  --output invoice.pdf

Open invoice.pdf. It should contain one A4 page with an invoice title, line item and total.

Stop the test when you finish. For Docker, run docker stop pressjet-quickstart. For the binary, run kill "$pressjet_pid" in the same terminal.

Connect your app

Node.js 22+ · Linux x64 or ARM64
release=https://github.com/tonysantana1492/pressjet/releases/download/v0.1.0-beta.7
arch=$(node -p 'process.arch')
npm install "$release/pressjet-0.1.0-beta.7.tgz" "$release/pressjet-linux-$arch-0.1.0-beta.7.tgz"
No install? Try the playgroundRender HTML or JSON in your browser. Set up signingAdd PostgreSQL and mail to send agreements. Run it in productionWorkers, keys, limits and health checks.