New: Markdown to PDF built for AI agents, PDF to E-Invoice for Factur-X/ZUGFeRD, and PDF to PDF/A for archive-ready PDF/A-3b.

How to Search for Text in a PDF and Retrieve Text Information Using PDF.co and Make

3 MIN READ

In this tutorial, we'll guide you through the process of searching for specific text within a PDF document and retrieving the text information using PDF.co and Make. For demonstration purposes, we'll be using a sample PDF document.

Sample PDF

Integrate Google Drive Module

Add Google Drive — Download a File and connect the Google account that has access to your source PDF. Select the PDF you want to process.

This scenario uploads the downloaded file to PDF.co in Step 4, so the original Google Drive file can remain private.

If you choose to supply a URL instead, that URL must be accessible to PDF.co. A private Google Drive browser-view link does not provide the same access as downloading the file through your authenticated connection.

Configure Google Drive

  • Choose Select from the List to pick the file.
  • Select My Drive as the drive to use.
  • Enter the folder and file name for the File Id field.

Add PDF.co Module

Next, integrate the PDF.co module and select the Search Text in PDF feature. This will allow you to search for specific text within the PDF and retrieve the corresponding information.

Configure the PDF.co Module

  • Set Import Options to Upload a File.
  • Map Data from Google Drive — Download a File into PDF.co’s Data field. This passes the downloaded PDF, not its Google Drive sharing link.
  • Input the text you wish to search within the PDF.
  • You can enable regex expressions if you're searching for patterns.
  • Set the output format to JSON to return the extracted text in a structured format.

Run the PDF.co Module

Run the PDF.co module to process the document and extract the required text information.

Integrate Google Sheets Module

Next, integrate the Google Sheets module and select the Add a Row feature. This will allow you to save the extracted information in a Google Sheets spreadsheet.

Configure the Google Sheets Module

  • Choose Search by path as the search method.
  • Select My Drive as the drive.
  • Enter the name of the spreadsheet and the specific sheet where you want to store the extracted text.
  • Map the extracted text fields to their corresponding columns in your spreadsheet.

Run the Scenario and View Results

Once all modules are configured, run the scenario. Open your Google Sheets spreadsheet to see the results of the extracted text saved successfully.

Verify the Spreadsheet Output

Here, you’ll find the text information successfully extracted from the PDF and stored in your Google Sheets.

In this tutorial, we learned how to search for specific text within a PDF document and retrieve the text information using PDF.co and Make.

Was this page helpful?

Related Tutorials

See Related Tutorials

Try it with your document.

Create an account, get an API key and test a request.

Get Started Free

© Copyright 2016-2026 Artifex Software, Inc d/b/a PDF.co — All Rights Reserved