Export PDF text from Google Drive every 5 minutes
Recipe ToolsMarketingDocument/FileSales EnablementDeveloper Tool
What it does
When a scheduled time arrives, this automation downloads a PDF from Google Drive and converts it to text. The extracted text file is uploaded back to Google Drive for someone to access.
Who it's for
Data and analytics teams who need to extract text from PDFs on a regular schedule without manual work.
How teams use this
Extract text from invoices daily
Run this automation every 5 minutes to pull text from invoice PDFs stored in Google Drive, making the data searchable and ready for accounting systems. The extracted text stays in the same folder for easy access.
Process scanned documents for compliance
Set the schedule to run hourly instead of every 5 minutes so scanned legal documents are converted to text and stored in a compliance folder. Only the timing changes for this team's workflow.
Add optical character recognition for images
Extend the Python code to include optical character recognition so PDFs with scanned images are converted to searchable text, not just embedded text. This requires adding an image processing library to the code step.
How it works
- Run every 5 minutes. This automation starts on a schedule, running every 5 minutes to check for new or updated PDFs in Google Drive.
- Download the PDF file. Retrieve the PDF file contents from Google Drive so Py Eval can process and extract the text from it.
- Convert PDF to text. Execute Python code to extract all text from the PDF and prepare it for storage in Google Drive.
- Upload the text file. Save the extracted text as a new file in Google Drive so someone can download or use it in other workflows.