PDF Extractor All-in-One: Text, Tables & OCR avatar

PDF Extractor All-in-One: Text, Tables & OCR

Pricing

from $0.70 / 1,000 page extracteds

Go to Apify Store
PDF Extractor All-in-One: Text, Tables & OCR

PDF Extractor All-in-One: Text, Tables & OCR

The all-in-one PDF extractor: text in reading order (even multi-column), LLM-ready Markdown, tables, OCR for scanned pages in 20 languages, RAG chunks, images and page images. Passwords, page ranges, links, uploads or base64. Failed PDFs are not charged. Export via API, CSV or Excel.

Pricing

from $0.70 / 1,000 page extracteds

Rating

5.0

(1)

Developer

T800 Solutions

T800 Solutions

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

5 days ago

Last modified

Features

Limited permissions

Share

PDF Extractor All-in-One is a PDF extractor API that turns any PDF into clean, structured data in a single run: text in reading order (even 2, 3 or 4-column layouts), LLM-ready Markdown with headings, tables as rows and columns, OCR for scanned PDFs in 20 languages, RAG chunks with page numbers, the images inside the PDF and each page as an image. Paste PDF links, upload a file or send base64, then export the results as JSON, CSV or Excel, or use them through the API. Failed PDFs are not charged.

โœจ What can this PDF extractor do?

FeatureWhat it does
๐Ÿ“ PDF to text and MarkdownFull text in reading order, plus Markdown with # ## ### headings, lists and tables, ready for ChatGPT, Claude, Gemini or any LLM
๐Ÿ“ฐ Multi-column layoutsPapers, magazines and government publications in 2, 3 or 4 columns come out in the order a person reads them
๐Ÿ“Š PDF tablesEvery table as rows and columns and as a Markdown table, with or without borders, including multi-row headers. Included at no extra cost
๐Ÿ” OCR for scanned PDFs (add-on)Scans, faxes, photos and image-only pages read by OCR in 20 languages, several at once. Only pages without text go to OCR
๐Ÿ–ผ๏ธ Export images (add-on)Every photo, logo and chart inside the PDF as its own file, cleaned up: no tiny icons or lines, a repeated logo comes out once, JPGs keep their original quality
๐Ÿ“ธ Page images (add-on)Each page as a PNG, JPG or WebP image (72 to 600 DPI, or 200 px thumbnails), great for AI vision models and previews
๐Ÿงฉ RAG chunksText split into overlapping pieces, each with the pages it came from, ready for Pinecone, Weaviate, Chroma, Qdrant or any vector database
๐Ÿ”‘ Passwords and page rangesProtected PDFs, 1-5, 8, 12-, or only the first or last N pages
๐Ÿงน Clean-upRemove repeated headers and footers, page numbers, extra blank lines and empty pages
๐Ÿ—‚๏ธ PDF metadataTitle, author, subject, creator, producer, dates, page count, protection and file size
๐Ÿ“ˆ Live Run summaryPDFs done, pages, OCR pages, images and amount charged, updated every 15 seconds

๐Ÿš€ How to extract text, tables and images from a PDF

  1. Paste one or more links in ๐Ÿ“„ PDF URLs (up to 1,000 per run), upload a file in ๐Ÿ“Ž Upload a PDF or image, or send base64 through the API. Images (JPG, PNG, TIFF, WebP) work too, with OCR on.
  2. Pick the ๐Ÿงพ Output format: one row per PDF (full text + Markdown), one row per page, or RAG chunks.
  3. Turn on the add-ons you need: Add-on: OCR scanned pages for scanned PDFs, Add-on: Export images for the images inside the PDF, Add-on: Page images for each page as an image.
  4. Click Start. Text rows appear in the PDFs tab while the run goes; exported images appear in the Images tab and in Images (ZIP); the Run summary shows progress.
  5. Download the results as JSON, CSV or Excel, or get them through the API.

It runs on the Apify platform, so you can also schedule runs, call it from your own code, get a webhook when a run finishes and connect it to n8n, Make, Zapier or AI agents (see Integrations below).

๐Ÿ“ฅ Which download should I choose?

You wantChoose thisWhere
Read or filter the text in Excel or Google SheetsOutput format One row per page, then export Excel or CSVPDFs tab โ†’ Export
The full text of each PDF in one pieceOutput format One row per PDF, then export JSONPDFs tab โ†’ Export
Text for ChatGPT, Claude or another LLMThe markdown column (headings, lists and tables kept)PDFs tab, or JSON
A vector database / RAGOutput format RAG chunks, then export JSONPDFs tab โ†’ Export
Tables as rows and columnsThe tables field in JSON (in Excel and CSV, tables are inside the markdown column)PDFs tab โ†’ Export JSON
Images, one by oneThe gallery, with a download button on each imageImages tab
All images at onceA ZIP file with every image and page image, one folder per PDFImages (ZIP) in the Output tab, or the Download all images (ZIP) button in the Images tab
Everything by APIDataset items (text) plus the IMAGES_JSON record (every image with its page, size and download link)Apify API

Good to know:

  • Excel and CSV files contain text only. Spreadsheets can't hold images, so images are never inside them: get them from the Images (ZIP) download or the Images tab.
  • One Excel cell holds at most 32,767 characters. Long PDFs don't fit in one cell, so for Excel use One row per page. JSON and the API always have the full text, with no limit. The Run summary reminds you when this happens.
  • Image download links work without logging in, so you can share them or use them in other tools.

๐Ÿ’ฐ How much does it cost to extract data from PDFs?

You pay only for what is delivered (pay per event). Prices per 1,000, by your Apify plan:

EventFreeBronzeSilverGold and above
Page extracted (text, Markdown, tables, metadata)$1.00$0.90$0.80$0.70
PDF processed$5.00$4.50$4.00$3.50
Add-on: OCR page (only pages without text)$6.00$5.40$4.80$4.20
Add-on: Image exported$1.00$0.90$0.80$0.70
Add-on: Page image (up to 300 DPI; above counts as two)$5.00$4.50$4.00$3.50

Plus the Actor start fee of $0.005 per GB of memory. Tables are free. Failed PDFs, skipped images and pages above your limits are not charged.

Examples (Free plan): a 100-page digital PDF costs about $0.11; the same PDF fully scanned, with OCR on every page, about $0.71; 1,000 one-page digital invoices, about $6.00.

Is it free to try? Yes. The Apify Free plan includes $5 of usage every month, with no credit card, which covers about 4,700 pages of digital PDFs.

โฌ‡๏ธ Input example

{
"urls": ["https://example.com/annual-report.pdf"],
"output_format": "document",
"include_markdown": true,
"extract_tables": true,
"ocr_scanned_pages": false,
"page_range": "1-5"
}
  • urls (๐Ÿ“„ PDF URLs): links to PDFs or images, up to 1,000 per run.
  • output_format (๐Ÿงพ Output format): document (one row per PDF), pages (one row per page) or chunks (RAG chunks).
  • ocr_scanned_pages (๐Ÿ” Add-on: OCR scanned pages) with ocr_languages, for example ["eng", "por"].
  • export_images (๐Ÿ–ผ๏ธ Add-on: Export images) and page_images (๐Ÿ“ธ Add-on: Page images).
  • pdf_password (๐Ÿ”‘ PDF password), page_range (๐Ÿ“‘ Page range), first_pages and last_pages to read only part of a PDF.

๐Ÿ“ค Output example

One row per PDF, shortened:

{
"source": "https://example.com/annual-report.pdf",
"status": "success",
"page_count": 3,
"extracted_page_count": 3,
"ocr_page_count": 0,
"title": "Annual Report",
"author": "Example Inc.",
"char_count": 5120,
"word_count": 812,
"text": "Annual Report 2026 ...",
"markdown": "# Annual Report 2026\n\n## Summary\n\n...\n\n| Product | Price |\n| --- | --- |\n| Coffee | 2.50 |",
"tables": [{"page": 2, "rows": [["Product", "Price"], ["Coffee", "2.50"]]}],
"is_encrypted": false,
"processed_at": "2026-11-09T10:00:00Z"
}

Exported images are listed in the IMAGES_JSON record, with the ZIP files and every image grouped by PDF:

{"zip_files": [{"part": 1, "file": "images.zip", "files": 42, "size_mb": 8.4, "url": "https://api.apify.com/v2/key-value-stores/.../records/images.zip?signature=..."}],
"pdfs": [{"source": "https://example.com/annual-report.pdf",
"images": [{"page": 1, "format": "jpg", "width": 1200, "height": 800, "size_kb": 184,
"url": "https://api.apify.com/v2/key-value-stores/.../records/annual-report-p001-img01.jpg?signature=..."}],
"page_images": [{"page": 1, "format": "png", "dpi": 150, "width": 1275, "height": 1650, "url": "..."}]}]}

Status values: success, partial (time limit, page limit or your maximum charge reached; the pages already read are delivered) and failed (with error_code: download_failed, not_a_pdf, corrupt_pdf, password_required, wrong_password, too_large, invalid_base64, image_needs_ocr).

๐Ÿง‘โ€๐Ÿ’ป Use the PDF Extractor API from Python, JavaScript or cURL

Python (pip install apify-client):

from apify_client import ApifyClient
client = ApifyClient("<YOUR_API_TOKEN>")
run = client.actor("t800solutions/pdf-extractor").call(run_input={
"urls": ["https://www.w3.org/WAI/WCAG21/working-examples/pdf-table/table.pdf"],
"include_markdown": True,
})
for item in client.dataset(run.default_dataset_id).iterate_items():
print(item["source"], item["page_count"], item["markdown"][:200])

JavaScript (npm install apify-client):

import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: '<YOUR_API_TOKEN>' });
const run = await client.actor('t800solutions/pdf-extractor').call({
urls: ['https://www.w3.org/WAI/WCAG21/working-examples/pdf-table/table.pdf'],
include_markdown: true,
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items[0].markdown);

cURL (waits for the run and returns the rows; for runs of up to 5 minutes):

curl -X POST "https://api.apify.com/v2/acts/t800solutions~pdf-extractor/run-sync-get-dataset-items" \
-H "Authorization: Bearer <YOUR_API_TOKEN>" \
-H "Content-Type: application/json" \
-d '{"urls": ["https://www.w3.org/WAI/WCAG21/working-examples/pdf-table/table.pdf"]}'

The API tab of this page has ready-made examples for more languages and the full list of endpoints.

More examples ready to copy (Python, JavaScript and cURL) on GitHub: github.com/t800solutions/apify-actors/pdf-extractor

๐Ÿ”Œ Integrations: n8n, Make, Zapier, LangChain, LlamaIndex and AI agents

  • n8n: the Apify node runs this Actor and returns the rows ("Run an Actor and get dataset"), for example to send each PDF's Markdown to an AI step or a database.
  • Make and Zapier: the Apify apps for Make and Zapier start a run and read the results, for example from new files in a folder.
  • LangChain and LlamaIndex: load the rows as documents with the Apify integrations for LangChain and LlamaIndex, then embed the RAG chunks in your vector store.
  • AI agents (MCP): Claude, Cursor and other MCP clients can find and run this Actor through the Apify MCP server.
  • Webhooks and schedules: get a webhook when a run finishes, or run it on a schedule.

๐Ÿ’ก Use cases

  • RAG and AI pipelines: feed documents to embeddings, vector stores and LLM prompts, with page numbers for citations.
  • Invoice and document processing: text and tables from supplier invoices, receipts and statements, scanned or digital.
  • Research and analysis: papers, reports and filings in bulk, tables straight to CSV or Excel.
  • AI vision: page images for GPT-4o, Claude or Gemini when the layout matters.
  • Content and catalogs: product images and photos out of brochures and catalogs.

๐ŸŒ OCR languages

English, Portuguese, Spanish, French, German, Italian, Dutch, Polish, Turkish, Russian, Ukrainian, Arabic, Hindi, Japanese, Korean, Chinese (Simplified and Traditional), Vietnamese, Indonesian and Thai.

๐Ÿ”’ Privacy

Your PDFs are used only to process your run. An uploaded file is deleted from storage right after it is processed. The Actor keeps no copy of your documents, and its logs contain only numbers (pages, size, time), never their content. Extracted images and page images are saved only in your own run storage.

โ“ FAQ

How do I convert a PDF to Markdown for ChatGPT, Claude or RAG? Keep ๐Ÿ“ Markdown (LLM-ready) on (the default) and use the markdown column. For a vector database, choose Output format RAG chunks: each chunk has the pages it came from, for citations.

Can I extract tables from a PDF to Excel or CSV? Yes. Tables are included at no extra cost. Choose One row per page and export Excel or CSV (each table is in the markdown column), or export JSON to get every table as rows and columns in the tables field.

Does it work with scanned PDFs? Yes, turn on Add-on: OCR scanned pages. Only pages without a text layer are read by OCR, so digital pages stay fast and cheap.

Can it read password-protected PDFs? Yes: type the password in ๐Ÿ”‘ PDF password. A wrong password gives a wrong_password row, which is not charged.

Can I extract only some pages? Yes: use ๐Ÿ“‘ Page range (for example 1-5, 8, 12-) or only the first or last N pages.

Will a long PDF break the dataset? No. A PDF too large for one row is split into one row per page automatically.

What if a link is broken? You get a row with status: failed and the reason, and it is not charged. The other PDFs keep going.

I opened the Excel file and there are no images. Is something wrong? No: spreadsheets hold only text. Your images are all together in Images (ZIP) in the Output tab, or one by one in the Images tab.

My long PDF looks cut in Excel. One Excel cell holds at most 32,767 characters. Choose One row per page for Excel, or download JSON for the full text in one piece.

๐Ÿงฉ More Actors by T800 Solutions

ActorWhat it does
๐Ÿ“ Google Maps Scraper โ€“ Most Accurate ExtractorBusiness names, phones, websites, addresses, ratings and reviews from Google Maps, across whole cities and only inside your area
๐Ÿ“น YouTube Scraper All-in-One: Videos & TranscriptsVideos, Shorts, live streams, channels and playlists from YouTube, with comments and transcripts in one run
๐Ÿ“ธ Instagram Scraper All-in-One: Posts & CommentsPublic Instagram profiles, posts, reels, hashtags and comments in one run, without login

All our Actors: apify.com/t800solutions ยท Code examples for every Actor: github.com/t800solutions/apify-actors

๐Ÿ’ฌ Support

Open an issue on the Issues tab. We answer in English.

โญ Happy with the results? A short review on the Reviews tab helps other people find this Actor.