---
title: "oomol-lab's pdf-craft Turns Scanned PDFs Into Readable Text Locally"
subtitle: "pdf-craft turns scanned book PDFs into clean Markdown or EPUB files entirely offline, powered by DeepSeek OCR running locally on your GPU"
url: "https://alphasignal.ai/news/oomol-lab-s-pdf-craft-turns-scanned-pdfs-into-readable-text-locally"
author: "AlphaSignal Newsroom"
author_url: "https://alphasignal.ai/editorial-team"
company: "AlphaSignal"
company_url: "https://alphasignal.ai/company/alphasignal"
published: "2026-06-27T02:27:42.000Z"
updated: "2026-07-07T07:10:03.297Z"
type: "Repo"
topics:
  - "Data"
  - "Open Source"
subtopics:
  - "Datasets"
upvotes: 118
source_url: "https://github.com/oomol-lab/pdf-craft"
comments: 0
truncated: true
---

# oomol-lab's pdf-craft Turns Scanned PDFs Into Readable Text Locally

> pdf-craft turns scanned book PDFs into clean Markdown or EPUB files entirely offline, powered by DeepSeek OCR running locally on your GPU

[pdf-craft](https://github.com/oomol-lab/pdf-craft) is an open-source Python library that solves one of the most frustrating document problems in existence: you have a scanned book PDF, and you want to actually _read_ or work with its contents. Not stare at flat images. Not fight with garbled copy-paste. Real, searchable, reflowable text. The library converts those image-based PDFs into structured Markdown or EPUB files, fully locally, with no cloud dependency.

With GPU acceleration, pdf-craft completes the entire conversion process from PDF to Markdown or EPUB locally, automatically identifying document structure, accurately extracting body text, and filtering out interfering elements like headers and footers. The project has accumulated nearly 5,900 GitHub stars since its launch, with over 400 forks, signaling real traction in the developer and research community.

## The problem it actually solves

Scanned PDFs are essentially photographs of pages. Standard PDF text extraction tools fail completely on them because there is no embedded text layer to extract. Traditional OCR tools can recover raw characters, but they typically destroy document structure: page numbers bleed into sentences, multi-column layouts get scrambled, footnotes appear mid-paragraph, and chapter headings are indistinguishable from body text.

For academic or technical documents containing footnotes, formulas, and tables, pdf-craft handles them properly, preserving these important elements, including images and other assets within footnotes. That last part matters more than it sounds: a footnote in a philosophy text or a math textbook can contain entire arguments or derivations.

## How it works under the hood

pdf-craft transforms image-based PDF pages into semantically structured content through a multi-stage pipeline: PDF rendering converts pages to high-resolution images; OCR recognition extracts text, layout, and elements using DeepSeek OCR models; structure analysis detects document hierarchy, table of contents, and references; content assembly merges paragraphs across pages and attaches captions to assets; and format generation renders the final Markdown or EPUB files.

_Preview only. Full text requires an AlphaSignal Pro account._

## Sources

- [oomol-lab/pdf-craft - GitHub](https://github.com/oomol-lab/pdf-craft)
- [oomol-lab/pdf-craft - DeepWiki Architecture Overview](https://deepwiki.com/oomol-lab/pdf-craft)
- [PDF-Craft: Turn Your Scanned PDFs into Clean Markdown or EPUB - Medevel](https://medevel.com/pdf-craft/)
- [DeepSeek OCR: Benchmarks and Performance 2025](https://skywork.ai/blog/llm/deepseek-ocr-benchmarks-and-performance-test-2025-update/)
- [Inkora - PDF Craft Online](https://inkora.oomol.com/en/pdf-craft/)
