How to Create PDF from Scratch using PDF.co and Zapier
We prepared these two step-by-step tutorials with screenshots to teach you how to create PDFs from scratch using PDF.co and Zapier.
Contents
01
For PDF Filler Option
Step 1: Make a Zap
- Start by clicking on Make a Zap! at the upper-left corner of your Zapier dashboard.
Step 2: Select PDF.co as an App Event
- Next, let’s proceed to the action step and select the PDF.co app.
![PDF.co on Action app](/_next/image?url=https%3A%2F%2Fcdn.sanity.io%2Fimages%2F2niroq9z%2Fproduction%2Fb01e1d0a07afff0ba2e8e06ccf1874c93331ceb3-893x626.png&w=1920&q=75)
Step 3: Choose PDF Filler as an Action Event
- Then, choose the PDF Filler option to add text and images to the document.
![Action event guide](/_next/image?url=https%3A%2F%2Fcdn.sanity.io%2Fimages%2F2niroq9z%2Fproduction%2Fc5616ca6c09301b5ff59204c977a0240a4f2a8df-893x479.png&w=1920&q=75)
Step 4: Setup action parameters
Let’s set up the action.
- For Source PDF leave it blank to create a new PDF
- For Text objects, the basic format would be
X;Y;Page;Text;FontSize;FontName
- For Images, the basic format would be
X;Y;Page;URLtoImage
- You can easily get the x and y coordinates using the PDF.co PDF Edit Add Helper tool.
![Setting up action parameters](/_next/image?url=https%3A%2F%2Fcdn.sanity.io%2Fimages%2F2niroq9z%2Fproduction%2F0bc5521ed10ddf46ecad3b097bd6689dd06ae781-889x855.png&w=1920&q=75)
Step 5: Test action
![Test action for PDF Filler](/_next/image?url=https%3A%2F%2Fcdn.sanity.io%2Fimages%2F2niroq9z%2Fproduction%2F02eabf8d5d36e44ca05727e9a0311bcd966254e4-892x678.png&w=1920&q=75)
Step 6: Created PDF from scratch
![Screenshot of the created PDF from Scratch using PDF Filler](/_next/image?url=https%3A%2F%2Fcdn.sanity.io%2Fimages%2F2niroq9z%2Fproduction%2Fa8701b8bd7511c29ad178dee76f844825e553665-794x676.png&w=1920&q=75)
For HTML to PDF Option
Make a Zap
- Start by clicking on Make a Zap! at the upper-left corner of your Zapier dashboard.
Choose HTML to PDF Converter as an Action Event
- Then, choose the HTML to PDF Converter option to create a PDF document with HTML content.
![Choosing HTML to PDF Converter Action Event](/_next/image?url=https%3A%2F%2Fcdn.sanity.io%2Fimages%2F2niroq9z%2Fproduction%2Fe0ca9aa178e4695e5f862282871d403b722d2fde-895x486.png&w=1920&q=75)
Setup action parameters
Let’s set up the PDF.co action configuration.
- For Input HTML or URL, you can put your HTML code or URL of a website that you want to convert into a PDF
- For Page Orientation, you may choose either Portrait or Landscape
- For Page Size, you may choose from different page sizes
- For Override Page Size, you can set your custom page size
- For Override Margins, you can set your custom margins
- For HTML Template Data, will be the template for your macros
![Action parameters](/_next/image?url=https%3A%2F%2Fcdn.sanity.io%2Fimages%2F2niroq9z%2Fproduction%2F1a5e5d87cb60833344a84ef529c16a143d07bfbe-895x765.png&w=1920&q=75)
![Action parameters](/_next/image?url=https%3A%2F%2Fcdn.sanity.io%2Fimages%2F2niroq9z%2Fproduction%2Fe1e5538b42d753581a9540818b2cde594ff6c45a-895x718.png&w=1920&q=75)
Test action
- After setting up the action, click the test and review button to see the result.
![Test action](/_next/image?url=https%3A%2F%2Fcdn.sanity.io%2Fimages%2F2niroq9z%2Fproduction%2F9c3c8cc4c84a4fd52c0426a7b5bc868215fdf675-893x735.png&w=1920&q=75)
Created PDF from scratch
- Here is the PDF document that we created from scratch with HTML to PDF API.
![Screenshot of the created PDF file from Scratch using HTML to PDF](/_next/image?url=https%3A%2F%2Fcdn.sanity.io%2Fimages%2F2niroq9z%2Fproduction%2F524b5f8dedb3f4e704c44b6cc8ff98281ea76530-816x275.png&w=1920&q=75)
In this tutorial, you’ve learned how to create a PDF from scratch using PDF.co and Zapier.