{
  "id": 22184168,
  "title": "Turn every PDF on a web page into text for RAG, without writing a crawler",
  "url": "https://urgent.news/2026/11/27/turn-every-pdf-on-a-web-page-into-text-for-rag-without-writing-a",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-11-27T16:00:06.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/fuloxdev/turn-every-pdf-on-a-web-page-into-text-for-rag-without-writing-a-crawler-1mhp"
  },
  "original_language": "en",
  "account": "Converting every PDF found on a web page into text for Retrieval-Augmented Generation (RAG) purposes, all without creating a custom crawler, is achievable through a reusable solution offered by an Apify Actor. This Actor, called \"PDF to Text Extractor,\" can turn the text of multiple PDFs found on a single page into a format suitable for a vector store, saving time and effort. The process involves three main steps: initiating a run, examining the inventory data, and processing the resulting document rows.\n\nFirst, to begin the extraction process, one must create a free Apify account and open the PDF to Text Extractor Actor. Then, input the web page link that contains the PDFs you wish to convert. It is crucial to ensure that \"sameDomainOnly\" is enabled, so that only the PDFs hosted on the same site are targeted. The actor allows for a maximum of 20 PDFs to be processed in the initial run, though this can be adjusted before proceeding. Additionally, the user can choose an output format for the extracted text, which can be either per_page, document, or markdown.\n\nThe inventory data is presented in a dataset row with three key components: type (which should always be \"inventory\"), found (indicating the total number of PDF links found on the page), queued (the number of PDFs to be processed in the current run), and links (providing details about the source page and the text of each link). This information is essential as it gives an estimate of how many PDFs will be processed in a single run, allowing users to gauge the processing time and cost before committing to the full extraction. Should the inventory show 34 PDFs with a queued value of 20, users can anticipate that roughly 34 PDFs will be handled in that single run.\n\nOnce the inventory has been reviewed, the actor then processes each PDF individually. Each PDF is assigned a type: \"document\" row, which contains several important fields such as status, page count, word count, the extracted text, and metadata. It is crucial to filter these document rows based on the status field, only keeping those with a status of \"ok.\" This ensures that only successfully extracted PDFs are indexed, preventing unnecessary indexing of files that failed to process. Users should be aware that if a PDF is linked from multiple pages, it will be processed only once, and subsequent appearances will result in duplicate rows.\n\nThe actor also includes a mechanism for handling pages that do not contain a text layer, which are listed under needsOcrPages. The actor itself does not perform Optical Character Recognition (OCR), so any files listed here will need to be sent to an OCR service provided by the user. This step is necessary to convert scanned documents into text before they can be incorporated into the vector store. Additionally, there are certain limits to the Actor's functionality. It cannot perform OCR, does not extract tables, and may have issues with multi-column layouts, interleaving text and images. Also, the Actor cannot find PDFs that are behind a login or those restricted by robots.txt, ensuring compliance with web scraping etiquette. The pricing for this service is $3 for every 1,000 PDFs up to a maximum of 100 pages, offering a cost-effective way to process a large number of PDFs without writing a custom crawler.",
  "summary": "Say a site has a \"Reports\" page with 30 PDFs and you want their text in a vector store. The slow part is rarely the parsing. It is finding the links, downloading the files and not paying twice for the same file. Here is how I do it with an Apify Actor I built, PDF to Text Extractor . 1. Start the run Create a free Apify account if you do not have one, open the Actor and put the page that links to…",
  "summary_source": "publisher",
  "key_points": [
    "\"PDF to Text Extractor\" Apify Actor converts PDFs on web pages to text",
    "Enables processing of up to 20 PDFs per run, adjustable per user",
    "Processes successfully extracted PDFs only, filters out failures"
  ],
  "editors_take": null,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "machine_translated": false,
  "ai_generated": true,
  "disclaimer": "Accounts, briefs, key points, the editor’s take and translations are written by software from other outlets’ reporting and may contain errors. A summary whose summary_source is \"publisher\" is the outlet’s own feed text. Always check the linked original."
}