doc-html-translate is a Windows command-line tool that converts documents (EPUB, PDF, TXT,
Markdown, FB2, RTF, HTML, MOBI, AZW3) into local HTML with generated navigation and a
table of contents. It can optionally translate extracted text via the Google Cloud Translation
API or a local Ollama model. Re-opening an already-converted book is instant. The package
ships both the CLI (doc-html-translate) and a small GUI launcher (doc-html-ui).
pdftotext is bundled inside the binary; MOBI and AZW3 conversion additionally requires
Calibre to be installed (non-DRM files only).
# Default open flow: convert + open in browser (no translation unless -google or -ollama is set)
doc-html-translate.exe "book.epub"
# Convert + Google translation
doc-html-translate.exe -google "book.epub"
# Convert + Ollama translation
doc-html-translate.exe -ollama -ollama-model gemma3:12b "book.epub"
# Specify language direction
doc-html-translate.exe -src en -dst ru "book.epub"
# Put output under a custom folder
doc-html-translate.exe -folder "D:\out" "book.pdf"
# Force full rebuild even if output already exists
doc-html-translate.exe -force "book.epub"
# Register as handler in current user registry
doc-html-translate.exe -register