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.

Export PDF to TXT Online with PDF.co

9 MIN READ

Use PDF.co and Zapier to extract text from a PDF and save it as a TXT file in Google Drive. The text conversion supports OCR for scanned pages and does not require a Document Parser template.

Choose the Input PDF

Create a Zap and select Google Drive’s New File in Folder trigger.

Connect your Google Drive account, select the source folder, and test the trigger with a PDF.

Use separate source and destination folders. For example:

  • Source: PDFs to Convert.
  • Destination: Extracted Text.

Keep the source folder limited to PDFs so unrelated files do not enter the conversion workflow.

Configure PDF to Anything

Add PDF.co and select PDF to Anything Converter. Connect your account by signing in to PDF.co and authorizing access.

Configure the conversion:

  • Output Format: Choose the Text/TXT option that includes layout and OCR.
  • Source File URL: Map the Google Drive trigger’s File value.
  • Page Selection: Leave blank for all pages, or enter 0 for the first page only.
  • File Name: Enter extracted.txt.
  • OCR Language for Scanned Documents: Select the document’s language.
  • Extraction Region: Leave blank to extract text across the full pages.
  • Custom Profiles: Leave blank unless additional settings are needed.

If Inline Output Option is displayed, leave it off so the result is returned as a downloadable file URL.

Page numbering starts at 0. Use the trigger’s File value rather than a browser preview link. See the file-source guide for other supported storage services.

The PDF to Anything documentation explains the conversion settings.

Review the Extracted Text

Test the PDF.co action and confirm that it completed without an error. Open its successful url output and check that the TXT file contains text from all selected pages.

Compare the text with the PDF, paying particular attention to names, amounts, punctuation, and reading order. OCR can misread characters in scanned pages.

TXT output contains extracted text, not images, interactive form controls, or the PDF’s complete visual design.

Save the TXT File in Google Drive

Add Google Drive’s Upload File action and configure:

  • Drive: Select the destination drive.
  • Folder: Select the separate destination folder.
  • File: Map PDF.co’s successful url output.
  • File Name: Enter extracted.
  • File Extension: Enter txt.
  • Convert to Document?: Select No to retain a plain TXT file.

Test the upload, then open the stored file in Google Drive. This step copies the actual text file into Drive; storing the temporary PDF.co URL alone does not preserve the result.

For repeated runs, use a source-based filename, such as the original file’s ID followed by -text, to make each result identifiable. Save or transfer the output before its temporary link expires.

Once the stored TXT file contains the expected text, publish the Zap.

Full Text or Selected Fields?

Use this workflow to export page text into a readable TXT file. Extracting specific fields or tables into structured records is a separate task suited to a parsing workflow.

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