PDF to Markdown & Text Extractor for RAG (DOCX, HTML, TXT)

Input: URLs of PDF, DOCX, HTML or TXT files. Output: PDF to Markdown or plain text per document, per page, or as RAG-ready chunks with token counts. $2 per 1,000 documents plus $0.30 per 1,000 pages. No OCR.

Pricing

Pay per event on Apify. You are charged only for results delivered.

Run it on Apify

Sample output

Real rows from a recent run with the default input (2 shown, long text trimmed). Download as JSON, CSV or Excel on Apify.

[
 {
  "url": "https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf",
  "fileName": "dummy.pdf",
  "mimeType": "application/pdf",
  "pageCount": 1,
  "pagesExtracted": 1,
  "title": null,
  "metadata": {
   "creator": "Writer",
   "producer": "OpenOffice.org 2.1",
   "creationDate": "D:20070223175637+02'00'",
   "subject": null,
   "keywords": null
  },
  "likelyScanned": false,
  "charCount": 14,
  "wordCount": 3,
  "approxTokens": 4,
  "text": "Dummy PDF file",
  "pages": [
   {
    "page": 1,
    "text": "Dummy PDF file"
   }
  ],
  "markdown": "Dummy PDF file"
 },
 {
  "url": "https://arxiv.org/pdf/1706.03762",
  "fileName": "1706.03762",
  "mimeType": "application/pdf",
  "pageCount": 15,
  "pagesExtracted": 3,
  "title": null,
  "metadata": {
   "creator": "LaTeX with hyperref",
   "producer": "pdfTeX-1.40.25",
   "creationDate": "D:20240410211143Z",
   "subject": null,
   "keywords": null
  },
  "likelyScanned": false,
  "charCount": 8985,
  "wordCount": 1353,
  "approxTokens": 2247,
  "text": "Provided proper attribution is provided, Google hereby grants permission to\nreproduce the tables and figures in this paper solely for use in journalistic or\n...",
  "pages": [
   {
    "page": 1,
    "text": "Provided proper attribution is provided, Google hereby grants permission to\nreproduce the tables and figures in this paper solely for use in journalistic or\n..."
   },
   {
    "page": 2,
    "text": "1 Introduction\nRecurrent neural networks, long short-term memory [13] and gated recurrent [7] neural networks\nin particular, have been firmly established as ..."
   },
   {
    "page": 3,
    "text": "Figure 1: The Transformer - model architecture.\nThe Transformer follows this overall architecture using stacked self-attention and point-wise, fully\nconnecte..."
   }
  ],
  "markdown": "Provided proper attribution is provided, Google hereby grants permission to\nreproduce the tables and figures in this paper solely for use in journalistic or\n..."
 }
]

Built and maintained by Winters Works. Questions: [email protected]

All tools