CleanBoardBuy for €4.99

How to copy text from a PDF without line breaks

By , the makers of CleanBoard ·

Turn on CleanBoard’s Fix Line Breaks rule once. From then on, copy text from a PDF twice and the lines that were broken in the middle of a sentence are joined back up before you paste, in any app. The breaks between paragraphs stay where they are.

Why text copied from a PDF breaks into short lines

A PDF places its text line by line on the page. When you copy a paragraph, many PDF viewers put a line break at the end of every one of those lines, so one sentence arrives as three or four short lines. The words are all there; only the line breaks are in the wrong places.

Copy text from a PDF without line breaks, step by step

CleanBoard needs to be running. Look for its icon in the menu bar on a Mac or in the system tray on Windows.

  1. Open CleanBoard, go to Rules and turn on Fix Line Breaks. Rules are off until you turn them on, and the setting stays on after that.
  2. Select the text in the PDF.
  3. Press Command+C on a Mac or Ctrl+C on Windows, then press it again within three seconds.
  4. Click where the text should go, in a document, an email, a form or a chat, and press Command+V or Ctrl+V.
Copied from a PDF

The survey covered 1,200 households in three regions, and the results were published in March. A second survey is planned for next year.

Pasted with Fix Line Breaks on

The survey covered 1,200 households in three regions, and the results were published in March. A second survey is planned for next year.

The pasted text is plain text, so it also arrives without the PDF’s fonts and colours.

Which line breaks CleanBoard removes, and which it keeps

Fix Line Breaks only joins two lines when the break is clearly in the middle of a sentence: the first line does not end with a full stop, exclamation mark, question mark or colon, and the next line starts with a lowercase letter. The two lines are joined with one space. Everything else is left alone, so headings, lists and paragraphs keep their shape.

and the results were published
Joined: “and the results were published”. The first line has no closing punctuation and the next starts with a lowercase letter.
in three regions, and the results
Joined. A comma does not end a sentence, so the line is still joined.
published in March. the second survey
Kept on two lines. The first line ends with a full stop. The same goes for !, ? and :.
prepared by the Finance Department
Kept on two lines. The next line starts with a capital letter. Join these two by hand.
a new work- flow for the team
Joined as “work- flow”. A word split with a hyphen is joined with a space and keeps its hyphen. Delete the hyphen and space by hand.
• First item • Second item
Kept on two lines. A line that starts with a bullet, number or capital letter is never joined to the line before it.
end of a paragraph. Start of the next
Kept, with the empty line. An empty line is never joined, so paragraphs stay apart.

Paste PDF text into Word, Google Docs or PowerPoint

The rule works the same whichever app you paste into, because CleanBoard fixes the text on the clipboard before you paste. The app guides show the full steps: paste a PDF paragraph into Word, into Google Docs and onto a PowerPoint slide. Text already in a Word document with the broken lines in it can be fixed in place: remove line breaks in Word.

Other rules that help with PDF text

Normalize Newlines
Turns three or more line breaks in a row into two, so pasted paragraphs are separated by a single empty line.
Remove Trailing Newlines
Removes line breaks and spaces after the last character of the copied text.
Remove Leading Whitespace
Removes spaces and tabs at the start of each line, such as the indent on text copied from an email or a code editor.

If the line breaks are still there

  • Check that Fix Line Breaks is on under Rules. Without it, CleanBoard removes the formatting but keeps every line break.
  • A line that starts with a capital letter, or follows a line ending in a full stop, exclamation mark, question mark or colon, is kept on purpose. See the list above.
  • If you cannot select the text in the PDF at all, the page is probably a scanned image with no text in it. CleanBoard only works on text you can copy.
  • Copy the same selection both times. If the selection changes between the copies, CleanBoard counts it as a new copy.
  • Press copy again within three seconds. A slower second copy starts the count over.
  • If you changed the number of copies in Settings (it can be two to six), press copy that many times.
  • Turn on the notification in Settings to get a confirmation each time CleanBoard cleans the clipboard.
  • After the free 5,000 characters, CleanBoard shows a notification and stops cleaning until you buy a licence.
  • CleanBoard only changes text. A copied image is left as it is.