Xberg extracting with OCR
For extracting text from scanned PDFs, photographed pages, or images that have no embedded text layer.
In detail
Use when extracting text from scanned PDFs, photographed pages, or images that have no embedded text layer. Covers OCR backends, language packs, force-OCR, and performance tuning.
Safety check
- Not rated by Claude yet. We only sell skills Claude has read and rated 7 out of 10 or higher, so this one is a free link to its author.
An automated scan lowers risk but cannot promise zero risk. How we check skills
Preview
The first lines of SKILL.md
---
description: Use when extracting text from scanned PDFs, photographed pages, or images that have no embedded text layer. Covers OCR backends, language packs, force-OCR, and performance tuning.
name: xberg-extracting-with-ocr
---
<!--
AI-RULEZ :: GENERATED FILE — DO NOT EDIT
Content-Hash: blake3:b1718303d659167ff376b4e1d4baf546d3e74f8f0804698a3486c0a1d2e6c913
Source-Hash: blake3:ecced908336a9a16b05ba8da02b6a7496e3bb30e857d2b3727ac1d43520f5bdd
Schema-Version: v1
-->
# Extracting with OCR
Use this when a document is image-based: scanned PDFs, photographed pages,
screenshots, JPEG/PNG/TIFF with text. Xberg auto-OCRs raster images and
auto-detects PDFs that lack a text layer. Force it on when extraction
returned empty/garbled text from a PDF that "looks" textual.
## When to force OCR
- Extraction returned an empty `content` field, but the file opens visually.
- The PDF text layer is junk (copy-paste from a viewer produces gibberish).
- You want consistent output across mixed scanned + digital PDFs.
```bash
xberg extract scan.pdf --force-ocr=true
xberg extract scan.pdf --ocr=true --ocr-language eng
```
If a page has an unreliable text layer, `--force-ocr=true` re-rasterizes
and runs OCR on every page.
## Backends
Tesseract is the default and ships with the CLI — no extra install. Other
backends are opt-in:
| Backend | Flag | Install | Notes |
| ------------- | ------------------------------------- | ------------------------------------------------ | -------------------------------------------------------------- |
...From xberg-io's repository, MIT licence.
Related skills
-
Checked
Arc42 architecture docs
Writes arc42 software architecture documents with clear links between decisions, risks and technical debt.
7/101 credit -
Checked
PDFKit PDF Generation
Builds invoices and reports as PDFs in Node.js with PDFKit, including tables, page numbers and custom fonts.
7/101 credit -
Checked
Incident postmortem writer
Writes blameless incident postmortems with fishbone and five whys analysis, so the team fixes root causes.
7/101 credit -
Checked
Plain language docs
Rewrites docs and notes in plain English with short active sentences, so anyone can follow them first time.
8/101 credit -
Checked
Clear runbooks and READMEs
Rewrites docs, runbooks and error messages in Simplified Technical English so readers get one clear meaning.
7/101 credit -
Checked
Simplified Technical English
Rewrites manuals into Simplified Technical English, so non native readers and translators can follow them.
7/101 credit