Skip to content

PDF text

Text copied from a PDF breaks wherever the page did. Words hyphenated at the end of a line arrive in two halves, fi and fl arrive as single odd characters, and page numbers end up in the middle of sentences. The PDF fix repairs that:

  • Lines that wrapped are joined back into paragraphs. Real paragraph breaks stay.
  • Hyphenated words split across lines are rejoined, after checking the joined word against the macOS dictionary, so real hyphens (well-known) stay.
  • Ligatures such as fi and fl become ordinary letters, and odd bullet characters become •.
  • Page numbers, lines that are only a number, are removed.
Before: After:
…and splits hyphen- …and splits hyphenated words across lines.
ated words across lines. Pastesmith rejoins Pastesmith rejoins them into proper
them into proper para- paragraphs and fixes fi and fl ligatures.
graphs and fixes fi and fl ligatures.
3 A new paragraph starts here.
A new paragraph starts here.

Each part can be turned off under Settings → Markdown & PDF.

  • Automatically for copies from PDF readers: Preview, Acrobat and Acrobat Reader, Skim, PDF Expert, PDFpen, GoodNotes, Highlights, Zotero, PDFgear and Foxit. Turn this off with Fix line breaks automatically in PDF apps.
  • For PDFs in a browser, when Also for PDFs open in a browser is on. Pastesmith then checks whether the tab shows a .pdf, so each browser asks once for permission.
  • For an app or website you choose: tick Fix PDF line breaks on its rule. A copy rule fixes everything you copy from there; a paste rule fixes everything you paste there.
  • Once, on demand: Fix PDF Line Breaks in the menu fixes the clipboard, or the Paste with PDF line breaks fixed shortcut pastes the fixed text once.

The fix works with any format: plain text, text with links or Markdown.

Two-column layouts and tables in PDFs can’t be fully repaired, because the PDF doesn’t say which line belongs to which column.