# OCR

> Skill `ocr` on Faro. 1 sub-skill.

Extracts text from scanned PDFs and images of documents using optical character recognition. Returns the recognized text as layout-aware markdown, preserving reading order and tables. Works on photographs of documents, scanned reports, and image-based PDFs.

**Category:** Documents  
**Tags:** ocr, text-extraction, scanned-pdf, markdown, tables  
**Use when:** You have a scanned PDF or a photo of a document with no selectable text layer and need its contents as text.  
**Not for:** PDFs that already have a selectable text layer, answering questions about a document, describing photos, or translating.  
**Returns:** information — Returns the recognized text as markdown per page, in reading order, with tables preserved. Character styling like bold or italic is not preserved.

## How to run
Skills run through one gateway with your Faro token. Hand it an `intent` in plain language; Faro routes to the right sub-skill, runs it, and bills per call. Raw tools are internal plumbing and are not directly callable.

```
POST https://skill.askfaro.com/skills/ocr/run
Authorization: Bearer faro_<your_key>
Content-Type: application/json

{"intent":{"prompt":"Extract the text from this scanned PDF"}}
```

Or from the CLI:

```bash
pip install askfaro-cli && askfaro auth login
askfaro run ocr "Extract the text from this scanned PDF"
```

Full run reference: https://askfaro.com/llms/run.md — Agent recipe: https://askfaro.com/llms/skill.md

## Example requests

- Extract the text from this scanned PDF

## Sub-skills

### Extract text via OCR

Runs OCR over a scanned PDF or document image and returns layout-aware markdown per page, tables included.

**Cost:** ~10 credits / page (up to 3000) — Billed at 5 credits per page processed.

**Use when:** You have a scanned PDF or a photo of a document with no selectable text layer and need its contents as text.

**Details:** https://askfaro.com/llms/skills/ocr/extract.md

---

---
On the web: https://askfaro.com/search/ocr