Guides / Generate PDFs with Make

No-code · Updated 2026-12-03

Generate PDFs with Make

This guide builds a Make (formerly Integromat) scenario that creates a PDF from data in an earlier module, then emails it or uploads it to Google Drive. You send a template id and the data; DevilPDF returns the finished document with totals calculated, pages broken correctly and fonts for every language.

A native DevilPDF app for Make is coming. Until it is listed, use Make's built-in HTTP → Make a request module, described here. It calls the same API and does the same thing.

#What you need

  • A Make account. The HTTP module is available on every plan.
  • A DevilPDF API key. Sign up, open API keys and create one. It starts with dp_live_. The free plan includes 500 documents a month.

#The example

A new form submission becomes a course certificate, uploaded to Google Drive and emailed to the student. The trigger here is a form tool (Typeform, Tally, Jotform, Google Forms), but any module that outputs data works.

#1. Add the trigger

Start the scenario with your form's Watch responses (or similar) module and run it once with a test submission so Make knows the fields: name, email, course name.

#2. Add the HTTP module

Add HTTP → Make a request and fill it in:

SettingValue
URLhttps://devilpdf.com/v1/render
MethodPOST
HeadersAuthorization = Bearer dp_live_...
Body typeRaw
Content typeJSON (application/json)
Parse responseYes

In Request content, paste the body below. Then replace each placeholder in capitals with the matching field from the trigger, using Make's mapping panel.

Request content
{
  "template": "certificate",
  "data": {
    "title": "Certificate of Completion",
    "recipient": { "name": "STUDENT_NAME" },
    "description": "has successfully completed COURSE_NAME.",
    "issued_on": "ISSUE_DATE",
    "certificate_id": "CERT_ID",
    "issuer": { "name": "Ledger School of Technology" },
    "signers": [
      { "name": "Dr. Helena Voss", "title": "Programme Director" }
    ]
  },
  "filename": "certificate-CERT_ID"
}

Tips:

  • For ISSUE_DATE, map formatDate(now; "YYYY-MM-DD").
  • For CERT_ID, the response or submission id from the trigger works well.
  • If a mapped value can contain double quotes, wrap it in Make's replace() function to escape them, or the body will not be valid JSON. Names like Amara "Mara" Okonkwo are the usual culprit.

#3. Run it once

Click Run once. The HTTP module's output has the document under Data:

FieldMeaning
data.urlLink to the finished PDF
data.idDocument id, starting with doc_
data.pagesPage count
data.statussucceeded

Open the link and check the certificate. If the status code is 400 or 401, read data.error.message: it names the field that is wrong, or tells you the key is invalid (check the Bearer prefix).

#4. Get the file and use it

Most modules that upload or attach want the file itself, not a link. Add a second module, HTTP → Get a file, with URL set to data.url from step 2. Its output is a file you can map anywhere:

  • Google Drive → Upload a file: keep a permanent copy.
  • Gmail → Send an email (or Email → Send an email): add it under Attachments.
  • Dropbox, OneDrive, Slack: the same.

Hosted links expire: after 24 hours on DevilPDF's free plan, up to 30 days on paid plans. Saving the file in the same scenario keeps it as long as you want.

#Invoices with line items

For an invoice, the items array comes from an earlier module's bundles, such as Shopify order lines or rows from a sheet. Use an Array aggregator (or Make's JSON → Create JSON module) to collect them into one array with name, quantity and unit_price keys, and map the result as items:

Request content
{
  "template": "invoice",
  "data": {
    "number": "INV-1001",
    "customer": { "name": "Acme Robotics Inc." },
    "items": [
      { "name": "Brand identity system", "quantity": 1, "unit_price": 4800 }
    ],
    "tax_rate": 13,
    "tax_label": "HST"
  }
}

The template adds up the subtotal, tax and total. Do not send totals yourself.

#Many documents at once

A scenario that loops over hundreds of rows works, but each HTTP call waits for its document. For large runs, send them in one request to POST /v1/render/batch with a webhook_url, and start a second scenario from Make's Webhooks → Custom webhook trigger to receive each finished document. See async and batch.

#Other templates and languages

The starters are invoice, quote, receipt, statement, report, packing-slip and certificate. Each documents its fields in sample_data; see templates. Add "locale": "es" (or "ar", "ja", "de"...) next to "template" and the labels, dates and money switch language. Arabic and Hebrew documents mirror right to left.

#Next steps