How to Convert Airtable File to PDF using PDF.co and Zapier
In this tutorial, we will show you how to convert an Airtable file into a PDF using PDF.co and Zapier. Below is the sample Airtable with Doc file and will convert it into a PDF.
![Sample Airtable File](/_next/image?url=https%3A%2F%2Fcdn.sanity.io%2Fimages%2F2niroq9z%2Fproduction%2F46ea44ea45a410ca300f9fa8e7fea6100426cb62-1137x611.png&w=3840&q=75)
Contents
Step 1: Create Zap
- To begin. First, log into your Zapier account and click on the Create Zap button.
Step 2: Airtable App
- Next, search and select the Airtable app. Then, choose the New Record as a trigger.
![Airtable App](/_next/image?url=https%3A%2F%2Fcdn.sanity.io%2Fimages%2F2niroq9z%2Fproduction%2F753039aea5745dd028277caf9a27c718b5cb4a60-741x399.png&w=1920&q=75)
Step 3: Airtable Configuration
Let’s set up the configuration.
- In the Base field, select the base name of the Airtable.
- In the Table field, choose the table name that contains the record with the attachment file.
- In the Limit to View field, select Grid View.
![Airtable Configuration](/_next/image?url=https%3A%2F%2Fcdn.sanity.io%2Fimages%2F2niroq9z%2Fproduction%2F2ece2f3a7dc41c73f1051dd4a8adbf6100e9f2ab-735x488.png&w=1920&q=75)
After setting up the configuration, click on the test trigger button to make sure that we set it up correctly.
Step 4: Test Trigger Result
- Great! The test trigger was set up correctly. We can now add another app and convert an Airtable file to a PDF.
![Test Trigger Result](/_next/image?url=https%3A%2F%2Fcdn.sanity.io%2Fimages%2F2niroq9z%2Fproduction%2Fa980ba6dd038979398a7c3d15e24220288583c0a-731x663.png&w=1920&q=75)
Step 5: Add PDF.co App
- Let’s add another app and select PDF.co. Then, choose the Anything to PDF Converter so we can convert any document or file into a PDF.
![Add PDF.co App](/_next/image?url=https%3A%2F%2Fcdn.sanity.io%2Fimages%2F2niroq9z%2Fproduction%2F809eead011ca813d23560dc33ec8b131072e398c-733x395.png&w=1920&q=75)
Step 6: PDF.co Configuration
Let’s set up the configuration.
- For the Input Type field, input the type of document that link from the Airtable file.
- For the Input field, select the Attachments URL result from Airtable.
- In the Name field, enter your desired output file name.
![PDF.co Configuration](/_next/image?url=https%3A%2F%2Fcdn.sanity.io%2Fimages%2F2niroq9z%2Fproduction%2Fad4215549a98d7c1dccc2d5c0a18e86efff46b1c-733x535.png&w=1920&q=75)
Step 7: Test Action
- Now, let’s test the action to see the result.
![Test Action](/_next/image?url=https%3A%2F%2Fcdn.sanity.io%2Fimages%2F2niroq9z%2Fproduction%2F703f79514ea4e286933dbbf646ef348ab6cb64dc-737x751.png&w=1920&q=75)
Step 8: Test Result
- Excellent! We have successfully converted the Airtable file to PDF. You can copy and paste the output URL into a browser to view the output.
![Test Result](/_next/image?url=https%3A%2F%2Fcdn.sanity.io%2Fimages%2F2niroq9z%2Fproduction%2F59cf05748cb6b2d677095a6f383dc08ee29fcd07-733x699.png&w=1920&q=75)
Step 9: Output
- Here’s the Airtable file converted to a PDF.
![Airtable File Converted to PDF](/_next/image?url=https%3A%2F%2Fcdn.sanity.io%2Fimages%2F2niroq9z%2Fproduction%2Facab72e5af1cc95c3b5c870c47278ac2bcff6449-999x793.png&w=2048&q=75)
In this tutorial, you learned how to convert an Airtable file to a PDF using Zapier. You also learned how to use the PDF.co Web API and convert an Airtable file into a PDF document.