Skip to content
//PDF to Text & Markdown – Extract Text, Tables & Metadata example\\

PDF linked from a web page, pages 1-2, 1 document

Finds the PDF on a page and reads only the chosen pages.

Updated November 10, 2026

What this example returns

This example returns up to 1 document.

The dataset’s “Documents” view shows 11 columns: PDF URL, File, Title, Author, Pages, Words, Status, Created, Size (bytes), Found on page, and Warning. See every output field.

What each setting does

The input this example runs PDF to Text & Markdown – Extract Text, Tables & Metadata with. “Try this input” opens it in the console, where you can run it as-is or change any field first.

PDF URLs or web pages urls

https://arxiv.org/abs/1706.03762

Direct links to PDF files (one per line). You can also paste a web page: the extractor finds the PDFs it links to. Google Drive and Dropbox share links and arXiv abstract pages are converted to direct downloads.

Max PDFs per web page maxPdfsPerPage

1

When a URL is a web page, extract at most this many PDFs linked from it. Direct PDF URLs are always processed.

Default: 20 → this example uses 1

Page range pageRange

1-2

Extract only these pages, e.g. 1-5, 8, 12- (12- means page 12 to the end). Leave empty for all pages.

Max documents per run maxDocuments

1

Stop after this many PDFs in total. 0 means no limit.

Default: 0 → this example uses 1

.json
{
  "urls": [
    "https://arxiv.org/abs/1706.03762"
  ],
  "maxPdfsPerPage": 1,
  "maxDocuments": 1,
  "pageRange": "1-2"
}

What it costs

You pay for the events the actor reports, such as each result or page it produces. Platform usage is included in the event prices: compute, proxies, browser and storage cost nothing extra.

  • PDF extractedfrom $0.00093Charged once for each PDF document extracted, whatever its page count. Failed downloads, invalid URLs and non-PDF files are free.
  • Actor startfrom $0.0015Charged once per run.

Full pricing

When to use this example

From the PDF to Text & Markdown – Extract Text, Tables & Metadata readme:

Does it read scanned PDFs?

It reads the embedded text layer. Scanned (image-only) pages are flagged with textExtractionStatus: "no_text" or listed in emptyPageNumbers so you can route them to OCR.

How big can a PDF be?

Up to 100 MB by default (raise maxFileSizeMb up to 500 MB). Very long documents are split across fields so each row stays under the dataset size limit; use per-page rows or a page range for huge files.

Other ways to run PDF to Text & Markdown – Extract Text, Tables & Metadata

All examples of PDF to Text & Markdown – Extract Text, Tables & Metadata

About PDF to Text & Markdown – Extract Text, Tables & Metadata

Extract text, Markdown, tables and metadata from PDF URLs or from every PDF linked on a web page. Per-page text, page ranges, password-protected PDFs. Fast, no login needed.

Price:
From $0.93 / 1,000 results
Developer:
Toolwright

PDF to Text & Markdown – Extract Text, Tables & Metadata pageOutput fieldsPricing

Related actors

//From the blog\\

Latest articles

All articles

The internet is full of data.
Start owning yours.

Scrape.ly gives you the infrastructure, the tooling, and the team to extract, process, and operationalize web data at any scale. Setup takes minutes.

No credit card. No setup calls.