
How to Split PDF in Google Drive Folder with Google Apps Script and PDF.co
6 MIN READ
This tutorial shows how to automatically search a PDF for specific text using PDF.co and Zapier. PDF.co can search both regular and scanned PDF documents.
We will use Google Drive as the trigger, but you can substitute another app that supplies a PDF file.
Complete the PDF.co action fields:
Invoice Number.0, 0-2, or 0,2,4.PDF.co can also search for patterns. For example, the following regular expression searches for a US Social Security number format:
[0-9]{3}-[0-9]{2}-[0-9]{4}
See the PDF.co Search Text documentation for details about search settings, page ranges, and returned fields.
Test the PDF.co action using the sample PDF.
A successful result includes the matches found in the document. Each match can contain information such as:
Review the results and confirm that PDF.co found the expected text.
Add another Zapier action based on what should happen after a match is found. For example, you can:
Test the complete Zap, then publish it. New PDFs added to the selected Google Drive folder will now be searched automatically.
Now, you know how to do a text search within a PDF file using PDF.co and Zapier integration.
To learn more about specific tasks with PDF.co Web API, check out our Tutorials.
Create an account, get an API key and test a request.