ocr-book-polisher

Convert scanned PDFs and image-heavy books into Markdown, TeX, and PDF documents.

1|Updated Jun 3, 2026
One-click install
npx skills add https://github.com/lachlanchen/LazySkills --skill ocr-book-polisher
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ocr-book-polisher
Source: https://github.com/lachlanchen/LazySkills/tree/main/skills/ocr-book-polisher
Command: npx skills add https://github.com/lachlanchen/LazySkills --skill ocr-book-polisher

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pdf2text, pymupdf, pdfplumber, xelatex, and includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill addresses the challenge of converting scanned PDFs, image-heavy books, and OCR output into corrected, publishable Markdown/TeX/PDF while preserving figures, equations, diagrams, tables, captions, and evidence-based validation.

Core Features & Use Cases

  • OCR Conversion: Converts scanned PDFs and images into accurate text.
  • Formatting Preservation: Preserves the structure of the original document, including figures, equations, and tables.
  • Validation: Ensures the accuracy and completeness of the converted document.

Quick Start

Run the 'ocr-book-polisher' skill with the 'scan-book' command to convert a scanned book into Markdown/TeX/PDF format.

Frequently Asked Questions about ocr-book-polisher

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I convert a scanned PDF book to Markdown or TeX while preserving equations and tables?

To convert a scanned PDF book to Markdown or TeX while preserving equations and tables, you need an OCR and formatting tool that reconstructs document structure. This skill processes scanned content and outputs accurate Markdown, TeX, or PDF files with original figures and tables intact.

What is the best way to format OCR output from image-heavy books for academic publishing?

The best way to format OCR output from image-heavy books for academic publishing is using a tool that validates and corrects recognized text. This skill polishes raw OCR data into structured documents, preserving diagrams, captions, and equations suitable for publication.

Do I need xelatex installed to convert scanned documents to TeX format?

Yes, you need xelatex installed to convert scanned documents to TeX format. The skill relies on xelatex alongside pdfplumber and pymupdf dependencies to parse input PDFs and render the final TeX layout with accurate formatting.

Can I use this tool to extract and preserve complex diagrams from technical PDFs?

Yes, you can use this tool to extract and preserve complex diagrams from technical PDFs. It handles technical documents by identifying and retaining figures, tables, and equations during the OCR conversion process to ensure structural completeness.

Why does my converted PDF lose its original layout when using standard OCR software?

Standard OCR software often loses original layout because it extracts text linearly without structural validation. This skill solves that by using TeX for layout formatting and evidence-based validation to ensure figures, equations, and tables remain correctly placed.

How do I run the ocr-book-polisher skill to process a scanned book?

To run the ocr-book-polisher skill and process a scanned book, execute the 'scan-book' command. This initiates the OCR conversion pipeline, transforming your scanned PDF into corrected Markdown, TeX, or PDF output.