AI Agent Hub
Back to skills
PDF/EPUB/MOBI to TXT and Markdown Translation icon

PDF/EPUB/MOBI to TXT and Markdown Translation

Office Efficiency Updated 2026.08.30

Paste the following prompt into your AI chat to install this skill:

Please follow https://skillhub.cn/install/skillhub.md and install @user_1793b15c/pdfconversion-v1.

About this skill

Problem

Ebooks often arrive as EPUB, MOBI, or PDF files. Extracting the text is only the first step: the output still needs cleaning, chapter structure, and optional translation. Manual copying can break headings, while online models add token cost, privacy concerns, and connectivity requirements. This skill targets local conversion: turn common ebook files into editable text, generate Markdown with scripts, and translate when needed.

How It Works

  • Format conversion: epub-to-txt, mobi-to-txt, and pdf-to-txt export single or batch files to TXT; MOBI uses mobi, while PDF can fall back to clawpdf and PyMuPDF.
  • Scanned PDFs: pdf-to-txt-ocr uses local RapidOCR for PDFs without a text layer, such as scanned books or facsimiles.
  • Markdown rendering: txt-to-md maps titles, authors, and subsections into #, ###, italics, and plain body text.
  • Translation: txt-translate runs offline through Argos Translate, preserving chapter structure, supporting bilingual output, and resuming interrupted jobs.
  • Batch workflows: workspace-batch-convert parses book lists, routes mixed formats, skips completed files, and emits a summary report.

Boundaries and Notes

The skill is best for extractable text. Image-only EPUBs still require exporting images and running OCR separately. Complex multi-column layouts may produce interleaved lines. Offline translation is suitable for reading and understanding, not for publication-grade copy. With special filenames, long paths, or Windows console encoding issues, verify that the output file exists and contains the expected content.

Use Cases

  • Convert a set of English EPUB technical books to TXT and Markdown for editing in local notes.
  • Extract text from scanned PDFs with local OCR, then save TXT for search and summarization.
  • Batch convert mixed MOBI and EPUB books in a folder to TXT, skip existing files, and review success and failure counts.
  • Translate English TXT chapters into Chinese while preserving headings and sections, with bilingual output for review.

Best For

  • Engineers maintaining personal knowledge bases who need ebook text as editable Markdown instead of manual copying.
  • Editors processing course or industry materials who need batch text extraction from EPUB, PDF, and MOBI into structured drafts.
  • Offline translation assistants who need to convert English TXT/MD into Chinese while preserving chapter structure.
  • Research assistants organizing mixed ebook folders who need one batch conversion pass with a success/failure summary.