Guide · 5 min read · Updated 2026-08-09

Why copying from a PDF breaks the formatting

A PDF stores where each piece of text sits on the page, not what it means. Copy-paste loses the layout.

Drop your file hereor choose a file from your deviceAccepted: PDF

This file never leaves your browser.

You select a paragraph in a PDF, copy it, paste it into a document, and get something mangled. A line break after every line. Words fused together with no space between them. In a two-column paper, the left and right columns interleaved sentence by sentence into nonsense.

This is not a bug in your PDF reader. It is what happens when you ask for meaning from a format that only stores appearance.

A PDF describes a picture, not a document

It helps to know what PDF was designed for. It is a page description format, built so a document prints identically everywhere. To guarantee that, it records exact positions: put this glyph at this coordinate, in this font, at this size.

What it does not record is structure. There is no marker saying "this is a paragraph" or "this is a heading" or "these two blocks are separate columns". A word processor file stores that hierarchy. A PDF has thrown it away by the time the file is written, because the printer does not need it.

So when you copy, your reader has to reverse-engineer structure from coordinates. It looks at positions and guesses. Sometimes it guesses well. On a two-column layout with footnotes and a running header, it usually does not.

The three failure modes, explained

A line break after every line. In the PDF, each visual line is a separate positioned text object — that is how justified text is achieved. Nothing in the file says which lines belong to the same paragraph, so a reader that treats each one as its own line is being literal, not careless.

Words running together. Space characters are frequently not stored at all. Instead of writing a space, the generator advances the drawing position by the width of one. Visually identical, but there is no space character to copy. A reader must infer word boundaries from the size of the horizontal gaps.

Columns interleaving. Text objects are stored in whatever order the generator emitted them, which is often top-to-bottom across the whole page rather than down one column and then the next. Read in file order, you alternate between columns. This is why academic PDFs are the worst offenders.

Why hyphens end up mid-sentenceJustified text often hyphenates across a line break. The PDF stores "manage-" and "ment" as separate objects on separate lines. Copy them and you get "manage- ment" in the middle of your sentence, because the hyphen is a real character in the file.

What a proper extraction does differently

A dedicated extractor does the reconstruction work your reader skips. It sorts text by vertical position to establish real reading order rather than trusting file order. It measures horizontal gaps to decide where words separate. It compares line spacing to distinguish a wrapped line from a genuine paragraph break. And it detects the wide vertical gutter that indicates two columns, so each is read fully before moving to the next.

None of this is magic — it is applying rules to coordinate data. But it is the difference between output you can use and output you have to repair by hand.

Drop your file hereor choose a file from your deviceAccepted: PDF

This file never leaves your browser.

Practical fixes if you are stuck with copy-paste

  1. 1
    Paste as plain text firstCtrl+Shift+V (Cmd+Shift+V on a Mac). This strips the pasted font and size soup, leaving you fighting one problem instead of two.
  2. 2
    Fix the line breaks with find and replaceIn most editors, replace two consecutive newlines with a placeholder, then replace remaining single newlines with a space, then restore the placeholder as a paragraph break. This reflows wrapped lines while keeping real paragraph divisions.
  3. 3
    Search for the hyphen patternFind "- " (hyphen followed by space) and inspect each hit. Most will be broken hyphenation you can close up; a few will be genuine compound words.
  4. 4
    For two-column documents, extract properlyDo not attempt to untangle interleaved columns by hand. Use an extractor that detects the gutter. This is the one case where manual repair genuinely is not worth the time.
If nothing copies at allYou have a scanned PDF: the page is an image and there is no text to select. That needs OCR, not extraction. Try selecting a line — if nothing highlights, that is your answer.

Frequently Asked Questions

Why does the same PDF copy cleanly in one reader and badly in another?

Because each reader implements its own heuristics for reconstructing structure from coordinates. There is no correct answer defined by the format, so different software makes different guesses and they disagree on hard layouts.

Is there a PDF that copies perfectly?

Tagged PDFs include structure information for accessibility, and they copy far better. They are produced when the author deliberately exports with accessibility enabled, which unfortunately remains uncommon.

Does extracting to Markdown help?

Yes, if you want the heading hierarchy back. Markdown extraction infers heading levels from font sizes, so you get structure rather than a flat block of prose.

Will extraction fix the column problem completely?

Usually, for a standard two-column layout with a clear gutter. Complex magazine layouts with text wrapping around images remain genuinely hard for any tool.

Related Guides