Split and Merge PDF with PDF.co using Zapier
In this tutorial, we will show you how to split and merge PDF with PDF.co using Zapier. We will use this sample 3 pages PDF for this tutorial.
Step 1: Add Google Drive
To begin, search for the Google Drive app and choose the New file in folder for the trigger event.
![App and Trigger Event](/_next/image?url=https%3A%2F%2Fcdn.sanity.io%2Fimages%2F2niroq9z%2Fproduction%2Fc6735593232b9f7841c2d543223e07003ff0b534-1115x607.png&w=3840&q=75)
Step 2: Setup Trigger
Next, let’s set up the trigger.
- In the Drive field, select My Google Drive.
- In the Folder field, enter the specific folder where your file was stored.
![Set Up Trigger](/_next/image?url=https%3A%2F%2Fcdn.sanity.io%2Fimages%2F2niroq9z%2Fproduction%2Ff42c8397c620e46bf61ab5fb64aef308b2530bcf-1117x625.png&w=3840&q=75)
After setting up, click the Test Trigger button.
Step 3: Test Trigger Result
Great! Our test was successful. We can now add another app.
![Test Trigger Result](/_next/image?url=https%3A%2F%2Fcdn.sanity.io%2Fimages%2F2niroq9z%2Fproduction%2F521ff196e09442820398d5315d0c498abd23fa2e-1005x859.png&w=2048&q=75)
Step 4: Add PDF Splitter
Let’s add another app. Select the PDF.co app and choose the PDF Splitter for the action event.
![App and Action Event](/_next/image?url=https%3A%2F%2Fcdn.sanity.io%2Fimages%2F2niroq9z%2Fproduction%2Fb6009e1fa257f43a9240613cec5f07a7a1863751-1001x547.png&w=2048&q=75)
Step 5: Setup PDF Splitter
Let’s set up the PDF Splitter.
- In the PDF URL field, select the Web Content Link to fetch the source URL from your Google Drive.
- In the Pages field, type the list of pages separated by a comma to split into PDF.
- In the Name field, enter your desired output file name.
![Set Up Action](/_next/image?url=https%3A%2F%2Fcdn.sanity.io%2Fimages%2F2niroq9z%2Fproduction%2F9566e010f50f0a4c0f45991d3e6cad5c43e5dd7a-1007x699.png&w=2048&q=75)
Once you complete the setup, click the Test and Review button.
Step 6: PDF Splitter Test Result
Excellent! The PDF.co successfully process our request. You can copy and paste the URL to view the output.
![Test Result](/_next/image?url=https%3A%2F%2Fcdn.sanity.io%2Fimages%2F2niroq9z%2Fproduction%2F687833336c4cc03df711778341ea6ad78d2a19c2-1003x811.png&w=2048&q=75)
Step 7: PDF Splitter Output
The output should be successfully split into multiple PDFs.
Step 8: Add PDF Merger
Finally, let’s add another app. Select the PDF.co app and choose the PDF Merger to merge multiple documents into a new single PDF.
![PDF.co App and Action Event](/_next/image?url=https%3A%2F%2Fcdn.sanity.io%2Fimages%2F2niroq9z%2Fproduction%2F6d058089972febea4069f0a96bd90340de7b2d2c-1007x541.png&w=2048&q=75)
Step 10: PDF Merger Test Result
Good! Our test was a success. You can copy the URL and paste it to your browser to view the output.
![Test Result](/_next/image?url=https%3A%2F%2Fcdn.sanity.io%2Fimages%2F2niroq9z%2Fproduction%2F3c8eace0db278758ad560e51cc6f16e70f7f1712-1005x629.png&w=2048&q=75)