Text from PDF
What this tool does
This tool reads the text content from a PDF file and breaks it down by page. It helps you quickly access the words inside a document without having to open or manually copy the text. This is useful when you need to process large amounts of document data or check what is inside a file.
When to use it
- Checking the content of an invoice or contract without opening the file.
- Gathering text from many documents to create a searchable list or dataset.
- Feeding document text into another system or analysis tool.
- Reviewing the text of a PDF archive without manual effort.
What to expect
You will receive the full text of the document, organized page by page. The answer includes the text for each page, the total number of pages, and the total number of characters found.
Limitations
- Scanned PDF images without a text layer will return empty results; you must use optical character recognition first.
- Complex layouts like tables or multiple columns may not keep the correct reading order.
- Images, charts, and graphics are not converted to text.
When it fails
- The file is not a valid PDF document.
- The PDF is encrypted and cannot be opened.
- The link to the file is unreachable or broken.
Good to know
- The text extraction happens locally and does not send your document to a third party.
- If all pages come back empty, the document is likely a scanned image.
Input data
| Parameter | Required | Example | Description |
|---|---|---|---|
url | No | https://public.downloads.uproc.io/samples/sample.pdf | Public URL of the file to process. |
ocr | No | true | Use yes to force text extraction from scanned images. Use no or leave blank to use the existing text layer only. |
Output data
| Field | Description |
|---|---|
text | All the extracted text combined into one block, with pages separated by blank lines. |
pages | A list where each item shows the page number and the specific text found on that page. |
page_count | The total number of pages found in the PDF file. |
chars | The total number of characters extracted from the document. |
ocr_used | A yes/no indicator showing whether optical character recognition was used to get the text. |