Skip to main content

Convert HTML to PDF in Make

What this module does

PDF4me Convert HTML to PDF turns an HTML file or a public web URL into a PDF document inside your Make scenario. Hand it the HTML content you've built dynamically, such as an invoice, a report, or a certificate, choose portrait or landscape layout, and the module hands back a finished PDF ready to email, store, or pass to the next step. No browser, no headless renderer, and no extra tools. PDF4me handles rendering on its own servers so your scenario stays simple.

Authenticating Your API Request

Every PDF4me module in Make requires a valid Connection. Create or select one that holds your PDF4me API key so the scenario can authenticate HTML conversion requests securely.

Important Facts You Should Not Miss

The file field accepts a URL too, not just a binary
The second input is called Document / public file URL, not just a file buffer field. You can map either the binary content of an HTML file from a prior module, or a publicly accessible web address. If you're working with a live hosted page, you can skip the download step entirely and pass the URL directly.
Advanced settings are there if you need them
The module has an Advanced settings toggle at the bottom of the panel, collapsed by default. Expand it before saving if you need finer control over rendering. The PDF4me documentation linked in the Layout field hint explains what is available there.
CSS works best when it is inline or embedded
The Layout dropdown gives you Portrait or Landscape. Everything else, including margins, fonts, and page size, comes from the CSS in your HTML. Inline styles and embedded style blocks render reliably. External stylesheets linked via link tags may not load if their URL is not publicly reachable when PDF4me renders the page.
Make PDF4me Convert HTML to PDF module showing Connection set to TestUser01, File set to Map with File name field mapped from 2. File Name and Document / public file URL field mapped from 2. Data, Layout dropdown set to Portrait with hint Set page layout portrait/landscape and Advanced settings toggle at the bottom

File name and Document / public file URL are both required when using Map. The Document field accepts either an HTML binary buffer or a public web URL. Advanced settings expand for additional rendering options.

Parameters

Required: Connection, File name, Document / public file URL, and Layout. All must be provided for the module to run.

ParameterRequiredWhat it doesExample
ConnectionYesPDF4me API connection. Click Add and paste your API key if connecting for the first time.Your PDF4me connection
FileYesSource input method. Choose Dropbox - Download a File for a direct Dropbox trigger, or Map to supply inputs from a prior module.Map
File nameYes (Map)Filename for the HTML source including extension. Hint: "Map the file name from the source action."2. File Name
Document / public file URLYes (Map)Either the binary content of an HTML file from a prior module, or a public web URL to render. Hint: "Map the file Data from the source action."2. Data
LayoutYesPage orientation for the output PDF. Options: Portrait, Landscape. Hint: "Set page layout portrait/landscape." Has Map toggle for dynamic scenarios.Portrait
Advanced settingsNoAdditional rendering controls available when the toggle is expanded. Refer to PDF4me documentation for available options.Expand to configure

Quick Setup

  1. Add PDF4me to Convert HTML to PDF in your Make scenario.
  2. Select Connection (or click Add to create one with your API key).
  3. Set File to Map. Connect File name and Document / public file URL from the prior module outputs. Or pass a live public URL directly in the Document / public file URL field.
  4. Choose Layout. Use Portrait for standard documents and Landscape for wide tables or dashboards.
  5. Save and run. The output Doc Data is your finished PDF. Pipe it into Gmail, Google Drive, Dropbox, or any downstream module.

Workflow Examples

Workflow ExamplesCommon Make scenario patterns using Convert HTML to PDF.
Turn a weekly sales report into a PDF and email it
  1. A scheduled trigger fires every Monday morning.
  2. A database or Google Sheets module fetches the week's sales data.
  3. A Make text module builds an HTML string, including a table of figures, a summary heading, and inline CSS styling.
  4. Convert HTML to PDF runs with Layout set to Portrait. The finished PDF lands in the Doc Data output.
  5. Gmail attaches Doc Data and sends the report to the management team before the 9am standup.
Generate a branded invoice PDF on every new order
  1. A webhook fires when an order is confirmed in an e-commerce platform.
  2. Google Drive downloads the HTML invoice template.
  3. A Make text module replaces the placeholder fields, such as customer name, line items, and total, with live data from the order payload.
  4. Convert HTML to PDF generates the finished invoice PDF.
  5. Gmail sends it to the customer, and a copy is uploaded to the "Invoices" folder in Dropbox.
Archive important emails as PDF records
  1. Gmail triggers when a message with a specific label arrives.
  2. The email HTML body is extracted and wrapped with metadata, such as sender, subject, and date, in a clean HTML layout.
  3. Convert HTML to PDF archives the email as a PDF with Layout set to Portrait.
  4. The PDF is uploaded to a SharePoint compliance folder. The email is tagged "Archived" in Gmail so the team knows it has been captured.

Frequently Asked Questions

Can I pass a live web URL instead of an HTML file?+
Yes. The field is called Document / public file URL for a reason. You can map either a binary HTML file from a prior module or a public web address. If you use a URL, the page needs to be reachable without authentication at the time the scenario runs. PDF4me fetches it from its own servers.
What CSS is supported in the HTML I pass?+
Inline styles and embedded style blocks render reliably. External stylesheets linked via link tags may not load if their URL is not publicly accessible during rendering. For consistent results, keep your CSS inline or in a style block within the HTML you pass to the module.
What is in Advanced settings?+
The module has an Advanced settings toggle at the bottom of the panel. Expanding it reveals additional rendering controls beyond Layout. The full list is covered in the PDF4me documentation linked in the Layout field hint. Check there before saving if you need margin control, specific page sizes, or other fine-grained options.
Can I control page margins or use a custom page size?+
For margins and page dimensions, use CSS @page rules inside a style block in your HTML, for example @page { margin: 20mm; size: A4; }. The Layout dropdown handles portrait vs landscape orientation. Everything else is driven by your HTML and CSS.
What does the module return?+
Name (the output PDF filename) and Doc Data (the binary PDF buffer). Map Doc Data into Gmail as an attachment, upload it to Google Drive or Dropbox, or pass it to another PDF4me module, like Digital Sign or Create PDF/A, for further processing.

Get Help