Español

Lee este artículo en español.

How to convert HTML to PDF in Make (HTTP module)

If you automate with Make (formerly Integromat), sooner or later some scenario needs a PDF: an invoice, a quote, a report, a ticket. You don't need to run a server or install odd apps. With the HTTP module and the Cofferdock API you can set it up in a couple of minutes.

One honest thing to know, because a lot of people search for it that way: Make has no dedicated "HTML to PDF" module. You do it with the generic HTTP module calling an API that does the work. Here's how, field by field.

What you'll get

You send your document in HTML and it returns the PDF, ready for the next module in the scenario: upload it to Google Drive, attach it to an email, or send it via Telegram. The module's response is already the PDF file, no conversion steps in between.

Typical uses in Make:

What you need

Step by step in the HTTP module

Add the HTTP → Make a request module and set it up like this:

The module's output is already the PDF file. Wire it straight into Google Drive (Upload a file), Email as an attachment, or wherever you need it. One module, done.

A quick example

Say you want a PDF invoice for every new order. The scenario would be:

  1. A module that detects the order (a webhook from your store, a form, or Google Sheets → Watch Rows).
  2. A Tools → Set variable module that builds the invoice HTML with the order's data.
  3. The HTTP module above, which turns that HTML into a PDF.
  4. An Email → Send an email module that attaches the invoice (mapping the file the HTTP module returns), or Google Drive → Upload a file to store it.

Every order generates its own invoice, automatically.

Options you can tweak

Add them to the Query String in the same module:

OptionDefaultWhat it does
formatA4Page size: A4, A3, A5, Letter, Legal or Tabloid.
landscapefalseSet it to true for landscape orientation.
margin0Margin in millimeters, the same on all four sides (0 to 100).
scale1Content scale (from 0.1 to 2).
print_backgroundtruePrints backgrounds and colors. Set it to false for a plainer PDF.

You can use background photos, logos and fonts hosted online by putting their https://… link inside the HTML or CSS. The document renders without running JavaScript, so work with HTML and CSS.

Prefer to see it in code?

The same call with curl, in case you want to try it on its own:

curl -X POST "https://api.cofferdock.com/pdf?format=A4" \
  -H "x-api-key: YOUR_KEY" \
  -H "Content-Type: text/html" \
  --data-binary "<h1 style='color:#8a5210'>Invoice #1234</h1>" \
  -o invoice.pdf

How much does it cost?

Each PDF uses 1 credit from your plan. Every Cofferdock tool shares the same pool of credits, so you're not paying for a separate service for each thing.

FAQ

Does Make have a native HTML-to-PDF module? No. You do it with the generic HTTP module calling the Cofferdock API, which generates the PDF.

Do I need to turn on "Parse response"? No. The response is a PDF (a file), not JSON, so leave it off and map the file to the next module.

Do I need to know how to code? No. You just fill in the HTTP module fields following this guide.

Can I control page breaks? Yes, with CSS. Use the page-break-before (or break-before) rule on your elements to force where each page starts.

Can I generate several PDFs at once? Yes. If the previous module returns several items, Make runs the HTTP module once per item.

Try it yourself

You'll find the full instructions, with copy-paste examples, on the HTML to PDF tool page. And if you don't have an account yet, you can create one for free and build your first scenario today.