How to Create PDF from Scratch using PDF.co and Make

3 Minutes Read

You can create a PDF from scratch in Make using either PDF.co’s Add Text and Images To a PDF module or its Convert HTML to PDF module.

Option 1: Add Text and Images to a New PDF

Create a Scenario

Create a new scenario in Make, add a PDF.co module, and select Add Text and Images To a PDF.

Configure the PDF.co Module

  • Under Import Options, select Import PDF from URL.
  • Leave URL empty to create a new PDF.
  • Optionally enter an Output File Name.
  • Under Parameters → Text Annotations, add the text to place in the PDF.
  • Enter the X and Y coordinates for the text.
  • Enter 0 in Pages to add the text to the first page, or 0- to add it to every page.
  • Optionally configure the font name, size, color, and other formatting.

Use PDF Inspector to determine the appropriate coordinates.

Run the Scenario

Run the scenario and verify that the PDF.co module completes successfully.

The module returns a temporary output URL. If Export Type is set to Download a File, it also returns the PDF as binary data that can be passed to another Make module.

Option 2: Convert HTML to PDF

Create a Scenario

Create a new scenario in Make, add a PDF.co module, and select Convert HTML to PDF.

Configure the PDF.co Module

  • Under Convert Options, select HTML to PDF.
  • Enter the HTML code to convert.
  • Optionally enter an Output File Name.
  • Select the page orientation and paper size.
  • Configure custom margins if needed.
  • Enable Render Page Background if the PDF should include HTML background colors and images.

Run the Scenario

Run the scenario and confirm that the module completes successfully.

Open the temporary output URL to inspect the PDF, or use the returned binary data in another Make module when Export Type is set to Download a File.

In this tutorial, you’ve learned how to create a PDF from scratch using PDF.co and Make.

You can also create a PDF from scratch using Zapier, or PHP programming language, JavaScript code, or C sharp.

Related Tutorials

See Related Tutorials