Document Translation

Can a PDF Be Translated? Yes — Here’s What Actually Happens to the File

A PDF can be translated — the result depends on whether it holds real text or page images. Learn a 30-second test, the translation steps, and what commonly breaks.

A paper document passing through a translucent plane and emerging with the same layout but differently patterned lines.
The page survives the trip; the words inside it are what change.

Can a PDF be translated? Yes, when the file really contains text

Two documents in exploded view: one with a hidden layer of character blocks beneath the printed page, the other made only of pixel squares with nothing beneath it.
Same-looking pages, different anatomy — the test reveals which layer exists.

Yes. A PDF can be translated, and the result can come back as a finished PDF rather than a wall of pasted text. But whether it translates directly depends on something most people never think to check: whether the file contains actual text or merely pictures of text.

That distinction splits every PDF into two families, and it decides how much work — and how much cleanup — sits between you and a translated book.

PDFs with a real text layer. These are files produced from a word processor, a typesetting tool, or an export pipeline. The characters exist as characters, with encoding behind them, so software can extract sentences, segment them, and send them to a translation model. This is the group that translates directly, and it is the group where a tool like Book Fork can return finished PDF and EPUB files with chapters and layout intact, because the structure was never missing in the first place.

PDFs that are photographs of pages. A scan, a photocopy, a phone photo of a printout. There is no text to extract because the page is an image; the shapes are ink, not characters. Nothing can translate this until optical character recognition turns those pixels into words. OCR becomes step one, translation becomes step two, and every error OCR makes gets carried into the translation that follows. Stray marks read as punctuation, a faded heading read as noise, a two-column layout read in the wrong order — the translator never sees the original page, only OCR’s interpretation of it.

Then there is the case that causes the most confusion, because it looks like the first family and behaves like the second: hybrid files. The body text is genuine and extractable, but a scanned figure sits inline, a table was pasted in as a screenshot, captions were flattened into images, or an appendix was inserted from a different source. Translate the file and Chapter 3 comes back clean while Chapter 4 arrives mangled, and the file itself looks fine in any reader. Nothing is broken. Some pages simply have text and others don’t.

So the honest version of “yes” is this: PDF translation works well when there is something to translate, and the amount of effort involved scales with how much of the document is really text. Find out which family your file belongs to before you commit to a workflow — the difference is a clean export versus an OCR pass plus translation plus proofreading against the original.

Check your own file first: a 30-second test

Open the file in whatever PDF reader you already have and run three checks. Together they take about half a minute, and they’ll tell you more about what translation will involve than the filename, the page count, or where the file came from.

Start by clicking at the beginning of a sentence and dragging to the end. Released text should turn blue, the way it does on a web page.

Next, press Ctrl+F (Cmd+F on a Mac) and search for a word you can plainly see on that page. Pick something slightly unusual rather than “the” — a name, a technical term, a word from the middle of a paragraph.

Finally, copy a sentence or two and paste it into a plain notes app or text editor, not a word processor that might quietly clean things up. Look at exactly what arrives.

What you get back puts your file on one of three paths.

Clean highlight, search hit, readable paste. The file carries a real text layer. What you see on screen is also there as characters, in order, and a translation tool can lift it out without guessing. This is the easy path: extraction will work, and any trouble later in the process will come from layout or language rather than from the file refusing to give up its words.

No highlight, no search hit. The page is a picture of a page, and the cursor is dragging across pixels. Translation can’t start until something reads the image and converts it to text — OCR, which you’ll see handled in more detail further on. A crisp, high-resolution scan still counts as an image; sharpness is not the same as text. One warning: a failed search alone doesn’t prove this. Check the highlight test, because encoding problems can break search while leaving selection intact.

Highlight works, but the paste is a mess. Boxes, question marks, accented letters swapped for wrong ones, “fi” turned into something strange, or words arriving welded together with no spaces. This is an encoding problem: the file describes characters by glyph number, and the mapping back to actual letters is missing or wrong, so your reader is reconstructing the text by guesswork. OCR isn’t automatically the answer here — if the underlying mapping can be repaired or the text re-extracted with a better tool, you keep the original text exactly as the author wrote it, which beats re-reading it from pixels.

One related outcome is worth recognising because it gets misdiagnosed: text pastes correctly but the lines from two columns interleave, or a heading lands in the middle of a sentence. The characters are fine; the order isn’t. That’s a reading-order problem, not an encoding one, and it’s a different kind of work.

Run the checks on more than one page, and make sure one of them has a caption, a table, or a scanned insert. If page 12 behaves like the first path and page 13 behaves like the second, you’re holding a hybrid file, and knowing that now saves you from concluding the whole document is broken when a single chapter is.

Why a PDF is an awkward thing to translate

Five-stage diagram: scattered fragments on a page gathered into rows, grouped into segments, passed through a processing module, then reassembled into one reflowed page and one fixed-box page with overflow.
Extraction, reading order, segmentation, translation, reassembly — most output defects are decided before the model reads a word.

A PDF doesn’t hold a document the way a word processor does. It holds a set of instructions for drawing pages. The format grew out of PostScript, a language for telling printers exactly where to put ink, and that heritage never went away: inside the file, a page is a content stream of operators saying things like “move to this position, switch to this font at this size, draw these glyphs.” Nothing in that stream is a paragraph. It’s a stack of drawing commands in the order the original software happened to emit them.

Which means the text is scattered in ways that have nothing to do with how it reads. A line of body copy may be written as a dozen separate runs, each repositioned by coordinates, because the layout program broke it up that way while kerning or justifying. Spaces are often not space characters at all — they’re gaps left by the next run starting further along the x-axis. Word boundaries have to be guessed from distance.

Structure is missing for the same reason. A heading is simply text set in a larger size near the top of the page. A caption is text sitting below an image. Two columns of body text are two clusters of glyphs at different x-coordinates, and the only thing that knows you read the left column to the bottom before starting the right one is your eye. The file itself has no opinion about it. Tagged PDFs, built for accessibility, do carry a structure tree describing headings, lists, and reading order — but tagging is optional, and plenty of PDFs in circulation, older files in particular and anything exported without it switched on, have no structure tree at all.

Translation engines need the opposite of all this. They work on sentences: units with a beginning and an end, enough surrounding context to resolve a pronoun or pick the right gender, and a boundary that isn’t an arbitrary line break. Feed a model the fragment “the committee approved” with no object, or a line that ends mid-clause because the column ran out of width, and it will translate something grammatical in the target language that says the wrong thing. Terminology control has the same dependency — a glossary only helps if the engine can see the term inside a complete sentence rather than chopped in half.

So a lot of what looks like fragility further down the line isn’t really a flaw in any particular tool. Extraction, reading order, sentence segmentation, and page reconstruction are all attempts to rebuild something the PDF never stored. Every one of them is inference, and inference can be wrong.

Fonts add another wrinkle. Typefaces in a PDF are usually embedded as subsets, trimmed down to just the characters that particular document used. If the source never contained a ř, an ő, a ß, or an Arabic letter, that glyph isn’t in the embedded font — the file has no shape to draw for it. Subsets also frequently ship with incomplete or missing character maps, which is the mechanism behind text that highlights fine but pastes as gibberish. Both issues stay quiet until you ask the file to display a language it was never built for, and then they surface all at once. The scale changes with the script: a Latin-script subset that falls short of a few accented letters is an inconvenience, while one pressed into service for Japanese, Chinese or Korean may be missing thousands of characters, and the translated page comes back with empty boxes or a substituted system font in the middle of a sentence.

What actually happens between uploading a PDF and getting a translated file back

Between the upload and the download sits a chain of reconstruction steps, and each one fails in its own recognisable way. When a translated file comes back with a repeated sentence on every page or a paragraph in the wrong column, the damage usually happened well before the model read a single word.

Extraction comes first: the pipeline pulls out the text and the coordinates it sits at. A PDF stores glyphs with positions, so the software reads both the character stream and the box each run of text occupies. Two things go wrong here. Text that was flattened into vector outlines or scanned as an image yields nothing at all, and the file has to go through OCR first. Text that displays perfectly can still extract as nonsense when a font’s internal character map is wrong, which is a common side effect of documents produced by older typesetting tools. Ligatures are a smaller version of the same problem: an fi drawn as a single glyph may arrive as one character that no dictionary or model recognises, and a word hyphenated across a line break arrives cut in half.

Coordinates alone don’t say what to read first. A two-column page has to be read down the left side before crossing to the right, a sidebar has to be lifted out of the main flow rather than spliced into the middle of a paragraph, and a footnote has to be attached to the passage it belongs to instead of landing wherever its position on the page puts it. Running headers and footers repeat on every page, and unless they are identified as page furniture they get harvested as body text — the usual reason a translated document opens with the book title stamped three hundred times. Page numbers and captions need the same treatment. None of this is stated in the file; the software has to infer it from geometry, font size and repetition.

Next the text is cut into segments, and the cut matters more than it sounds. Segmentation runs on sentence boundaries, not on lines and not on pages. A sentence wrapped across three lines is still one sentence, and a sentence that spills onto the following page is still one sentence. Translate the fragments separately and the model has no way to know that the verb belongs at the end in German, or that a pronoun three lines up refers to a noun that never made it into the same segment. The output reads like it was assembled from parts, because it was.

Before anything reaches the model, the parts that must come back untouched are fenced off: URLs, code blocks, markup tags, inline formatting, and placeholders such as {name} or %s. A translated URL is a broken link. A translated variable name is a broken template. The same guard rails keep bold and italic runs from drifting onto the wrong words after the sentence has been reordered.

Then translation runs segment by segment, with the glossary applied as a constraint rather than a suggestion. This is where terminology drift gets caught: without it, chapter one says ledger and chapter nine says account book for the same object, and a reader notices long before an editor does. A glossary also stops a model from translating something that should stay put — a product name, a term of art, or the word fork in a book about cutlery. Because segments are translated individually and saved as they complete, a job that stops halfway through resumes without retranslating the chapters already finished.

Reassembly is the last decision, and it is a genuine trade-off rather than a setting with a correct answer.

Reflow typesets the new text into new lines and new pages, using a font that actually contains the target language’s glyphs. If the translation runs longer than the source, the page simply grows. The cost is that pagination moves: page 47 of the translation is not page 47 of the original, cross-references to printed page numbers stop matching, and pages where layout was doing real work — a form, a labelled diagram, a cover — may not survive at all.

Overlay draws the translated text back into the boxes the original text occupied. The design survives, page numbers line up, and a spread still looks like the spread. But those boxes were sized for the source language. When the target runs longer, the text either overflows, gets clipped, or is shrunk until it can’t be read comfortably; when it runs shorter, you get gaps where a paragraph used to fill the space.

Most serious pipelines decide per page rather than per document. A novel reflows well and loses very little. A catalogue with captions set into product photos, or a children’s book with text baked into the illustrations, needs overlay or hand work. It is also worth remembering that the output format carries the same tension: EPUB reflows by nature, while PDF is a fixed page by definition.

Script direction is a separate axis, and it catches people out because the failure is so visible. A left-to-right layout does not simply mirror into a right-to-left one: margins, page progression, column order in a table, list bullets and the placement of question marks all have to be decided rather than flipped. Numbers and Latin-script names embedded in Arabic or Hebrew run the opposite way from the sentence around them, and mixed-direction runs are a recurring defect even in professionally produced files. A translation can be perfectly accurate and still look wrong on the page for that reason alone.

Which is why a translation that looks wrong is rarely wrong at the sentence level. The repeated line, the missing footnote, the paragraph stranded in the wrong column — each of those was decided by a step that never involved translating anything.

What survives translation — and what commonly doesn’t

Most of a PDF comes through translation intact. The failures are not random: they cluster in a short list of elements, and they fail for the same handful of reasons every time. Knowing where to look tells you more than any general reassurance about “preserving layout”.

ElementTypical outcomeWhat to check in the output
Headings and chapter orderUsually reliable. Styled headings keep their hierarchy and sequence, provided reading order was inferred correctly in the first place.The first heading after the title page, then two or three chapter openings later in the book.
ImagesGraphics are generally passed through untouched. Problems come from what sits around them: captions drift away from their figure, or an inline image shifts to the next page.One image-heavy spread, to confirm each figure is still with its caption.
Table of contents and bookmarksA generated TOC rebuilds from the translated headings and stays accurate. A TOC typeset as ordinary text on a page stays as text and may keep the original page numbers.Two TOC entries: do the page numbers and any links still point to the right place?
HyperlinksExternal URLs are normally protected and survive. Internal cross-references (“see chapter 4”) may not be rewritten to match the new numbering.One external link and one internal reference.
TablesThe most fragile element on the page. When text is pulled out as a stream, cell boundaries disappear and columns collapse into a run of prose.A table with a header row and at least one multi-line cell — do the numbers still sit beside their labels?
FootnotesNote text is usually translated, but the marker and the note can become separated, renumbered, or absorbed into the body text.The first footnote: marker in the text, note at the foot of the page or end of the chapter, numbers matching.
CaptionsTranslated, but sometimes stripped of their styling and treated as body text, or left in the source language where they were tagged as non-content.Two captions — one under a photo, one under a diagram — for language and formatting.
Drop capsA decorative initial is often a separate text object, so it can arrive as a stray character, an isolated letter, or untranslated.The first line of the first chapter.
LigaturesCharacters set as tied pairs (fi, fl, ff) sometimes extract as missing glyphs or odd symbols, which then travel into the translation.Word gaps or stray characters in a phrase likely to contain one, such as “office” or “flow”.
Hyphenation across line breaksAn end-of-line split (“transla-” / “tion”) reaches the translator as two fragments, producing a half-word, a spurious hyphen, or two separate translations of one word.Search the output for hyphens sitting mid-word.
Script direction (right to left)A left-to-right layout is not mirrored automatically. Column order, page progression, bullet and punctuation placement, and the direction of embedded numbers and Latin names all have to be decided, and mixed-direction runs go wrong easily.A page containing a list, a number and a Latin product name — check that punctuation sits on the correct side and that nothing jumps lines.
Running headers and footersBy default these are per-page artefacts, not content, so a book title or chapter name printed on 300 pages gets harvested as body text and translated 300 times.The top and bottom of two consecutive pages, for duplicated lines or a translated title repeated on every page.

Three causes account for most of that column on the right. The first is that a PDF has no concept of a header — it only has text at certain coordinates on each page. Whether the line at the top is a running title or the opening sentence of the chapter is something the extraction step has to decide, and if it decides wrong, the artefact is copied into the text stream on every page. The second is line-level formatting: a word broken across two lines is hyphenated for typographic reasons, but the extraction sees two strings, and the translator receives both. The third is tables. A spreadsheet-like grid is a set of positioned text runs, so the moment they are read as a single stream, the relationship between a cell and its column header is gone — nothing downstream can recover it.

None of these are reasons to avoid PDF translation; they are reasons to inspect before committing to a full read. Spotting a systematic problem on page 3 costs a re-run. Finding it on page 240 costs a weekend.

Three checks cover it:

  1. One full spread, read as a reader would. This is the only check that catches rhythm problems — sentences that are grammatical but stilted, or paragraphs that break in the wrong place.
  2. The first page. Title, author, edition, copyright line — the text least tolerant of being mangled.
  3. The last page. Index, appendix, or back matter, which is where truncation shows up.

If those three pass, the rest of the file is very likely in the same condition. If one fails, you know which element to sweep for across the whole document before anyone starts reading it properly.

What to do next, depending on what your file turned out to be

The test tells you which path you’re on, and the path tells you what to submit.

Clean text layer. Translate the PDF directly. There is nothing to repair first, so the only remaining decisions are terminological — a glossary, a chosen model — and the reflow-or-overlay question described above. Feed the file in, read a spread, fix what needs fixing.

Scanned pages. OCR is unavoidable, and the order matters: recognise the text, check the recognition against the page images before translating anything, then translate. Proofread after translation and you are comparing a translated sentence to a page you cannot easily scan for the error underneath it; errors get buried in the second language. Correct the text while you can still see what it is supposed to say.

Text that highlights but pastes as nonsense. Same principle: repair before translating. Re-extract with a tool that handles the encoding, or fix the character mapping, then translate the clean text. Translating the corrupted output and hoping the model makes sense of it produces a document that is wrong twice over.

And in all three cases, check whether the source file still exists. A PDF is an output format. If the book was written in Word, laid out in InDesign, or published as an EPUB, that file is a better input than the PDF in almost every respect: paragraphs are real rather than inferred, headings are tagged as headings, tables are tables, and the result can be exported to PDF at the end with the layout rebuilt deliberately instead of salvaged. Going back to the source costs an email or a file search. Repairing a PDF costs an afternoon. Translate the print-ready PDF only when the source is genuinely gone or outside your control.

One non-technical check belongs here too. Being able to translate a document is not the same as being entitled to: confirm you hold the rights to produce a translation before you send anything off. And if the manuscript is confidential — an unpublished book under contract, say — prefer tooling you can run on your own infrastructure to a service that requires you to upload it.

How much you can trust the output

Everything above describes the machinery. Whether the result is publishable is a different question, and it depends on three things: the model doing the translating, the language pair, and the kind of text.

Straightforward narrative prose — a novel, a memoir, a business book — generally comes back readable and needs light editing for rhythm and idiom rather than repair. Terminology-dense material, legal and regulatory text, marketing copy built on wordplay, poetry, and anything where the layout carries as much meaning as the words all need a human pass, sometimes a heavy one. Language pairs matter too: the volume of material a model has seen varies enormously from pair to pair, and so does the result.

So spot-check before committing to a full read. Take a page you know well, compare it against the source, and judge. If a chapter holds up, the book probably will; if a chapter needs rewriting, no amount of care over layout will rescue it.

About Book Fork: Book Fork is an open-source, multilingual document translation product for EPUB and PDF files. It parses documents, segments text, and runs glossary-aware, resumable translation through an OpenAI-compatible model chosen by the user, returning finished PDF and EPUB files with structure, chapters, and layout intact. It is aimed at authors and publishers, translators and editors, agencies and studios, and developers. Users can bring their own OpenAI-compatible model for free, or use a Book Fork-managed model for a flat $7 per book, up to 1,000 pages. Learn more at bookfork.space.

Book Fork

Translate the books you write about.

Upload an EPUB or PDF, pick your pair, and Book Fork runs a glossary-aware, resumable translation through the model you choose — structure, chapters and layout intact.

6 comments

Leave a comment

Your email address will not be published. Required fields are marked *