PDF reference

Why PDF editors break formatting

"It broke my formatting" describes a symptom, not a cause, which is why the usual advice — try a different tool — works about half the time. There are five distinct mechanisms, they produce different symptoms, and once you can tell them apart you can predict which tools will fail on which documents.

Free — no signupNo watermarkNothing to installYour layout preserved

The short answer

PDF editors break formatting through five distinct mechanisms: converting the file to another format and back, re-saving the whole document rather than appending a change, re-flowing the edited line from scratch, substituting a font the file does not contain, and rasterising pages into images. Each produces a different, recognisable symptom.

Five causes, five different symptomsA PDF stores no paragraphs or tablesConversion is the most destructiveRe-flow explains collapsed spacingRasterisation kills selectable text

The one fact underneath all five

Underneath all five is one fact about the format. A PDF describes a page as a set of drawing instructions at fixed coordinates. It contains no paragraphs, no columns, no tables and no concept of text flowing around anything. That rigidity is why a PDF looks the same everywhere — and it is why any operation that has to reconstruct structure the file never stored is a guess that can go wrong.

The five causes

1. The conversion round trip

PDF to Word, edit, Word to PDF. Each conversion re-derives structure the file never stored — where columns start, which lines form a table, which font is close enough. Two guesses for one word change, and the most destructive cause by a wide margin.

2. Full re-serialisation

Many editors rebuild and rewrite the entire document on save rather than appending the change. Objects get renumbered and re-encoded, and things that were fine can shift. An incremental append leaves the untouched parts of the original bytes exactly as they were.

3. Line re-flow

A PDF positions runs of glyphs at fixed coordinates, sometimes with per-character adjustments. An editor that rebuilds the line has to re-derive every one of those positions. Small errors show up as words bunching together, gaps opening mid-sentence, or the line drifting off its baseline.

4. Font substitution

The document embeds only the characters it used. Type one it never contained and something else has to draw it. A substitute with different widths does not just look different — it shifts every glyph after it on the line.

5. Rasterisation

The nuclear option some tools take: render each page to an image and wrap it back in a PDF. Nothing can move, because nothing is text any more. Search, copy, accessibility and file size all pay for it.

And what avoids them

Editing the existing text object in place, reusing the document’s own embedded font, writing at the original coordinates, and appending rather than rewriting. None of the five mechanisms gets a chance to fire.

Diagnosing which one hit your document

1

Look at what moved

If content below your edit shifted, the page was re-flowed or re-built. If only the edited line looks wrong, the cause is local — a font substitution or a re-flowed line.

2

Try to select the text

If the text on the exported page cannot be selected at all, the document was rasterised. This is unmistakable and unrecoverable without OCR.

3

Compare the page dimensions

Render the original and the export at the same scale. Different dimensions mean the page geometry itself was rewritten, which points at a full re-save rather than a targeted edit.

4

Zoom in on the edit boundary

Different stroke weight or letter widths where your edit meets untouched text means two font programs are drawing one line — cause four.

5

Copy a line you did not touch

If text elsewhere in the document now copies out differently from before, the file was re-encoded on save. That is cause two, and it affects pages you never opened.

Symptom to cause

Match the symptom to the mechanism — they do not overlap much.

 Symptom you seeCause
Tables collapsed or cells mergedStructure was inferred and got it wrong1. Conversion round trip
Content below the edit moved downThe page was laid out again1 or 2. Conversion or full re-save
Words bunched or gaps mid-lineGlyph positions were recalculated3. Line re-flow
One line in a different typefaceA glyph was missing from the subset4. Font substitution
Text can no longer be selectedThe page is now an image5. Rasterisation
File size jumped several times overText instructions became pixels5. Rasterisation
Pages you never opened changedThe whole file was rewritten2. Full re-serialisation

Cases that are nobody’s fault

Converters are not incompetent

A PDF-to-Word converter is asked to reconstruct a structure that was thrown away when the PDF was made. It gets it right often enough to be tempting and wrong often enough to cost you an afternoon. The mistake is using conversion for a job that does not need it.

Some documents genuinely cannot be edited cleanly

Scanned pages have no text to edit. A few internal structures cannot be written back to safely. The right response to those is a clear message, not a best effort that produces a damaged file.

Longer replacement text has to go somewhere

If you replace three words with fifteen, the line has more content than it was laid out for. That is not the editor breaking your formatting — it is the request requiring more space than exists.

How to avoid all five

Match the tool to the size of the change

Correcting words in a finished document is an editing job. Restructuring a document is a source-file job. Most formatting disasters come from using the second approach for the first task.

Never convert to fix a typo

It is the single highest-risk operation on this page, applied to the lowest-stakes change. If the layout is already right, do not put it through two format translations.

Keep the distributed file as your working copy

Editing the PDF that actually shipped guarantees the corrected version differs in one place. Rebuilding from source introduces differences nobody asked for.

Verify with a render diff before you send

Rasterise the original and your export at the same scale and compare. It takes a minute and catches all five mechanisms at once.

Frequently asked questions

  • Because a PDF stores a page as drawing instructions at fixed coordinates, with no record of paragraphs, columns or tables. Any operation that has to reconstruct that structure — most commonly converting the file to Word and back — is making educated guesses, and the formatting you lose is the difference between the original coordinates and the ones the guess produced.

  • Because nothing in the file says "this is a table". A table in a PDF is a set of text runs and ruled lines that happen to be positioned in a grid. A converter has to infer the grid from those positions, and when the inference is slightly off, cells merge, columns shift or rows split. Editing text in place never has to make that inference at all.

  • Because the line was rebuilt. PDFs position runs of glyphs individually, sometimes with per-character kerning adjustments, and an editor that redraws the whole line has to re-derive every position. Small errors in that calculation surface as words bunching up or unexpected gaps. Writing the replacement at the original line’s coordinates avoids the recalculation entirely.

  • The pages were rasterised — rendered to images and wrapped back in a PDF. Some tools do this because an image cannot reflow, so layout is trivially preserved. The price is that search, copy, accessibility and file size are all destroyed, and getting text back requires OCR.

  • Because the tool re-serialised the whole document on save rather than appending your change. Rewriting the file renumbers and re-encodes objects across every page, so content you never touched can be subtly altered. An incremental save leaves the original bytes of untouched pages exactly as they were.

  • Edit the existing text object in place: keep the document’s own embedded font, write at the original line’s coordinates, append the change rather than rebuilding the file, and never convert or rasterise. That combination is what this editor does, and it is measurable — see the fidelity benchmark linked below.

  • Any tool can, because the mechanisms above are properties of the operation rather than the vendor. Editing in place is low risk in any application that does it; converting to another format and back is high risk in any application that does that. What matters is which operation you are actually performing.

  • Check three things. Is there selectable text, or is the page a scan? Are the fonts embedded, and are they subsets? Does the change you need fit roughly in the space the old text occupied? The free font and layout checkers on this site answer the first two in a few seconds.