Before you start
You need:- A PDF Gorilla account: sign up
- An API key: API keys
- A saved template: use the Playground, save it, and copy the template ID from the URL
Step 1: Create a template
Open the Playground, paste this minimal invoice, and click Save as template:cma1b2c3d4e5f6g7).
Step 2: Call sync generate
ReplaceYOUR_API_KEY and YOUR_TEMPLATE_ID. Run:
invoice.pdf with your data filled in.
Step 3 (optional): Async generation
For heavier documents, enqueue a job and poll:Common errors
Full list: Errors.