---
title: "BabelDOC Translates Dense Academic PDFs Without Breaking Math or Layout"
subtitle: "BabelDOC translates scientific PDFs into bilingual documents while preserving layout, formulas, and terminology — now backed by an ACL 2026 paper"
url: "https://alphasignal.ai/news/babeldoc-translates-dense-academic-pdfs-without-breaking-math-or-layout"
author: "AlphaSignal Newsroom"
author_url: "https://alphasignal.ai/editorial-team"
company: "AlphaSignal"
company_url: "https://alphasignal.ai/company/alphasignal"
published: "2026-08-05T20:40:20.000Z"
updated: "2026-08-09T19:05:32.127Z"
type: "Repo"
topics:
  - "Open Source"
  - "Development"
subtopics:
  - "Code Generation"
upvotes: 21
source_url: "https://github.com/funstory-ai/BabelDOC"
comments: 0
truncated: true
---

# BabelDOC Translates Dense Academic PDFs Without Breaking Math or Layout

> BabelDOC translates scientific PDFs into bilingual documents while preserving layout, formulas, and terminology — now backed by an ACL 2026 paper

[BabelDOC](https://github.com/funstory-ai/BabelDOC) is an open-source Python library that translates PDF documents, especially dense academic papers, into bilingual side-by-side outputs while preserving the original layout. Math formulas stay rendered, multi-column grids stay aligned, footnotes get translated, and a glossary system keeps technical terms consistent across pages. With over 9,000 GitHub stars and a paper accepted at ACL 2026, it has become the default backend for serious PDF translation in the open-source ecosystem.

## The problem researchers keep hitting

PDFs dominate scientific research, commerce, law, and technical exchange, but English's dominance in global knowledge production shuts out non-English-speaking researchers in ways that compound over time. The obvious workaround, copying text into Google Translate, destroys all formatting. Commercial tools like DeepL handle documents but mangle multi-column layouts and drop math entirely. Existing pipelines force a choice between linguistic accuracy and structural fidelity: translation tools discard layout metadata, while document parsers can extract content but cannot re-render it faithfully after translation. BabelDOC was built to avoid that tradeoff entirely.

## The IR architecture doing the heavy lifting

The core innovation is an **Intermediate Representation (IR)**, a structured JSON snapshot of the entire document that keeps layout metadata and text completely separate. Rather than treating translation as a black-box end-to-end task, BabelDOC explicitly decouples visual layout from semantic content. That separation enables document-level operations that monolithic pipelines cannot support: terminology extraction, cross-page context handling, glossary-constrained generation, and formula placeholdering. Once translation is complete, the translated content is re-anchored to the original layout through an adaptive typesetting engine.

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

## Sources

- [BabelDOC GitHub Repository](https://github.com/funstory-ai/BabelDOC)
- [BabelDOC: Better Layout-Preserving PDF Translation via Intermediate Representation (arXiv)](https://arxiv.org/html/2605.10845v1)
- [BabelDOC ACL 2026 Demo Paper](https://aclanthology.org/2026.acl-demo.25/)
- [How LLMs Can Actually Translate PDFs (Layout Matters) — Medium](https://medium.com/@turgutgvcn/how-llms-can-actually-translate-pdfs-layout-matters-f990b175b6e7)
- [BabelDOC Official Documentation](https://funstory-ai.github.io/BabelDOC/)
