Zapier and Make
Generate PDFs from a spreadsheet, a form or a CRM, without a developer.
A typical case: a row added to a Google Sheet produces a PDF, sent by email or saved in a folder. Nobody writes code.
The Mizanpage apps
Under review
The Mizanpage apps are under review at Zapier and Make. In the meantime, Make's HTTP module calls the API directly: see below.
The Zapier and Make apps offer the same building blocks:
- Generate a PDF (action): choose a published template. Its fields appear. Drop the sheet's columns into them. The PDF comes back as a file for the next step (email attachment, Google Drive).
- PDF ready (trigger): fires when a PDF requested from Mizanpage is ready, with the file.
You connect with an API key. A test key produces watermarked, free PDFs to set up the scenario. Choose the PDF only permission so that a stolen key cannot change anything in your workspace. See API keys.
With Make's HTTP module
Make's HTTP module calls the API directly.
- Add the Google Sheets › Watch New Rows module on your sheet.
- Add the HTTP › Make a request module:
- URL:
https://api.mizanpage.com/v1/render - Method:
POST - Header:
Authorization=Bearer mzp_…(your key) - Body type:
Raw, content typeJSON (application/json) - Request content:
Replace the values in braces with your sheet's columns: Make offers them when you click in the field. Replace{ "template": "invoice", "format": "pdf", "data": { "values": { "client.name": "{{1.`0`}}", "invoice.total": "{{1.`1`}}" } } }invoicewith your template's identifier. - Parse response: No.
- URL:
- Add Gmail › Send an email. As the attachment, take the Data field of the HTTP module. Name the file
invoice.pdf.
Each PDF is a counted document. To try without being counted, use a test key.
Finding the catalogue keys
Keys such as client.name are those of your document type's catalogue. The GET /v1/templates/{ref}/fields route gives those your template prints.