← Reddit

How Claude Nailed PDF Translation

Reddit · gounisalex · July 28, 2026
A developer used Claude to create a PDF translation tool to solve layout preservation problems encountered during a mortgage application process, where free alternatives rendered text over existing content and broke the original formatting. Claude developed the application architecture and layout-preservation techniques such as character-counted translations and font normalization while building 90% of the unit tests over three weeks. The open-source solution is available under an MIT license.

Detailed Analysis

A developer's mortgage application troubles led to an unexpected showcase of Claude's capabilities in a technically demanding domain: layout-preserving PDF translation. The problem is a familiar one for anyone who has dealt with cross-border paperwork—existing free translation tools simply overlay translated text on top of original content, destroying formatting, alignment, and visual structure in the process. Rather than accepting this limitation or manually rebuilding each document element by hand, the developer devised a workaround: measure the physical space ("ink") occupied by each text element, then have Claude translate each piece individually before reinserting it into its original position. The result, an open-source tool called pdfx (available on GitHub under an MIT license, with a web demo at pdfx.zip), reportedly handled the task "perfectly."

What distinguishes this case from typical AI-assisted coding stories is the degree to which Claude contributed beyond simple execution of instructions. According to the developer, Claude didn't just translate text—it proactively suggested additional engineering techniques to improve output quality, including character-counted translations (ensuring translated text fits within the same spatial constraints as the original) and font-normalization to keep visual fields consistent across a document. This kind of unprompted technical suggestion reflects a shift in how developers are using AI coding assistants: not merely as code generators executing a spec, but as collaborators capable of recognizing edge cases and proposing solutions a human might not have anticipated. The developer also notes that Claude built the underlying architecture and wrote roughly 90% of the unit tests over a three-week period, suggesting a workflow where the AI handled substantial portions of both design and quality assurance.

This anecdote fits into a broader pattern of Claude being used for real-world document processing tasks that involve messy, unstructured data—PDFs being notoriously difficult to parse programmatically because they encode visual layout rather than semantic structure. Tasks like this require reasoning about spatial relationships, text measurement, typography, and multilingual content simultaneously, which is a nontrivial combination for automated systems. That a single developer could produce a working, open-sourced solution in three weeks, with an AI model handling most of the architecture and testing, speaks to how far AI-assisted software development has progressed in lowering the barrier to building specialized tools that previously required significant engineering investment or expensive commercial software licenses.

More broadly, this story is illustrative of a growing trend where individual developers use AI coding assistants like Claude to build and release niche, high-utility open-source tools that address specific pain points encountered in daily life—bureaucratic, administrative, or otherwise. The mortgage-application origin story humanizes the technical achievement, showing how personal frustration can turn into a shared community resource. It also underscores Anthropic's positioning of Claude as a capable "agentic" coding partner suited for extended, multi-week projects rather than single-shot code snippets—a capability increasingly central to Anthropic's product narrative around Claude's coding and reasoning strengths in competition with other frontier AI labs.

Read original article →