How to Process Large HTML to PDF or URL to PDF Conversions in Zapier
In this step-by-step tutorial, you will learn how to process large files using async in Zapier.
Let’s start by Creating a Zap!
HTML to PDF
![Screenshot of HTML Sample](/_next/image?url=https%3A%2F%2Fcdn.sanity.io%2Fimages%2F2niroq9z%2Fproduction%2F4c914c919e788012a8bb0de30f225ca412042835-213x116.png&w=640&q=75)
Step 1: Setup Action, select PDF.co as the App Event
- Search and select PDF.co from the list of trigger apps
![Search and select PDF.co from the list of apps](/_next/image?url=https%3A%2F%2Fcdn.sanity.io%2Fimages%2F2niroq9z%2Fproduction%2F46199af0f1da3337b3f19042f837db6714225c1b-549x381.png&w=1200&q=75)
Step 2: Select Custom API Call as the Action Event
- Select Custom API Call from the list of action events
![Select custom API call as the action event](/_next/image?url=https%3A%2F%2Fcdn.sanity.io%2Fimages%2F2niroq9z%2Fproduction%2F186267bec5793c6ef36fad64323e4a9fa7ef6f1e-894x470.png&w=1920&q=75)
Step 3: Setup PDF.co Action
- For the PDF.co API Endpoint, select
v1/pdf/convert/from/html
- For Input JSON, add the parameters and value
- For Run as Async Job, set it to true
- For Async Job Check Interval, set it to higher if the file is large
![Setup PDF.co action](/_next/image?url=https%3A%2F%2Fcdn.sanity.io%2Fimages%2F2niroq9z%2Fproduction%2F9edb2d7bbc87897ddf48edbfd0173b90cac4ad59-893x779.png&w=1920&q=75)
![Set async to true and set the interval](/_next/image?url=https%3A%2F%2Fcdn.sanity.io%2Fimages%2F2niroq9z%2Fproduction%2F6f4e2ec970ac4ab45c0a39a22efc4369f4947732-893x413.png&w=1920&q=75)
Step 4: Test PDF.co Action
- Once you’re done setting up the action, you may now test it
![Test action](/_next/image?url=https%3A%2F%2Fcdn.sanity.io%2Fimages%2F2niroq9z%2Fproduction%2F93aa135225e44ab16a9bab8c9a995bf295f79167-893x749.png&w=1920&q=75)
Step 5: Output PDF
- Here’s the output PDF
![Screenshot of Output PDF](/_next/image?url=https%3A%2F%2Fcdn.sanity.io%2Fimages%2F2niroq9z%2Fproduction%2F4dcf73281f77665467233213d09b87b6ac943909-817x278.png&w=1920&q=75)
URL to PDF
![Screenshot of Wikipedia Website](/_next/image?url=https%3A%2F%2Fcdn.sanity.io%2Fimages%2F2niroq9z%2Fproduction%2F25a7f6a39e39b0c52493fdae1298cb627f7c28ec-1891x939.png&w=3840&q=75)
To start, complete the first two steps as when converting HTML to PDF.
Setup Action, select PDF.co as the App Event.
Then Select Custom API Call as the Action Event.
Step 1: Setup PDF.co Action
- For the PDF.co API Endpoint, select
v1/pdf/convert/from/url
- For Input JSON, add the parameters and value
- For Run as Async Job, set it to true
- For Async Job Check Interval, set it to higher if the file is large
![Setup the PDF.co Action for URL to PDF](/_next/image?url=https%3A%2F%2Fcdn.sanity.io%2Fimages%2F2niroq9z%2Fproduction%2F57e3a6b8e55e0fe790394daf17a2b7ac2490d6ea-894x779.png&w=1920&q=75)
![Set async to true and set the job check interval](/_next/image?url=https%3A%2F%2Fcdn.sanity.io%2Fimages%2F2niroq9z%2Fproduction%2F010f16c3470c29d4d8a93be450578885c4af3c44-893x404.png&w=1920&q=75)
Step 2: Test PDF.co Action
- Once you’re done setting up the action, you may now test it
![Test PDF.co URL to PDF action](/_next/image?url=https%3A%2F%2Fcdn.sanity.io%2Fimages%2F2niroq9z%2Fproduction%2F1c08c54f77ec49a8712d8ff72634993e693fa502-893x730.png&w=1920&q=75)
Step 3: Output PDF
- Here’s the output PDF
![Screenshot of Output PDF](/_next/image?url=https%3A%2F%2Fcdn.sanity.io%2Fimages%2F2niroq9z%2Fproduction%2F202b59193c7bd4f1abeb3999625327bcadfe7c6f-817x877.png&w=1920&q=75)
You’ve learned how to process large HTML to PDF or URL to PDF conversions in Zapier.