How to Fix Odd PDF Formatting When Pasting into Word
Question details
The user needs to clean up messy formatting such as broken paragraph breaks, incorrect spacing, tabs, and strange indentation when copying text from a PDF and pasting it into Microsoft Word.

- Product
- Microsoft Word
- Device & OS
- Mac
- Scenario
- Copying and pasting text from a PDF document into a Word document.
- Observed behavior
- Pasted text contains odd formatting, including unwanted hard line breaks, awkward spacing, and improper indentation that misaligns the document.
Check if your PDF is text-based or a scanned image. Scanned PDFs will require Optical Character Recognition (OCR) to convert images into editable text before you can copy or modify the formatting.
Open and Convert the PDF Directly in Word
Use Microsoft Word's built-in PDF conversion feature instead of manually copying and pasting text to preserve better formatting.
Modern versions of Microsoft Word (including Word for Mac) include a built-in PDF conversion tool. Opening the PDF directly through Word forces the software to analyze the document and translate it into standard editable text paragraphs, which often avoids the hard line breaks caused by simple copy-pasting.
Open Microsoft Word on your Mac and ensure you are running an up-to-date version.
Navigate to the top menu bar, click on 'File', and select 'Open' from the dropdown menu.
Locate and select the PDF file that contains the text you want to extract, then click 'Open'.
Word will display a prompt indicating it will convert the PDF to an editable Word document. Click 'OK' to proceed and review your newly formatted text.

Paste as Unformatted Text and Reformat
Strip out all the problematic PDF formatting by pasting the text without any original styles.
Convert PDF to Word Seamlessly with WPS Office
Avoid messy formatting, broken line breaks, and indentation issues entirely by using the dedicated PDF to Word converter in WPS Office. It accurately preserves your original layout and text, saving you hours of manual editing.
- 1. Open WPS Office: Launch the WPS Office application and click on the 'PDF' tab on the home screen.
- 2. Select PDF to Word: Click on 'PDF to Word' in the top toolbar to open the conversion tool.
- 3. Add Your File: Drag and drop your PDF file into the window, and choose your preferred output format (.docx).
- 4. Start Conversion: Click 'Start'. The accurately formatted, editable Word document will open automatically once finished.

Frequently Asked Questions
Why does copied PDF text have line breaks at the end of every line?
PDFs are designed to lock visual layouts in place, so they often insert hard carriage returns at the end of each line to maintain fixed spacing. When pasted into Word, these hard returns remain intact, causing paragraphs to break prematurely.
How do I extract text from a scanned PDF document?
You cannot simply copy and paste from a scanned PDF because the document is essentially a flat image. You need to use software with Optical Character Recognition (OCR) capabilities, like WPS Office or Adobe Acrobat, to analyze the image and convert it into editable text.
Is there a quick way to remove all unwanted line breaks in Word?
Yes. You can use the 'Find and Replace' feature. Press Ctrl+H (or Cmd+H on Mac), type '^p' in the 'Find what' box, and type a single space in the 'Replace with' box. Click 'Replace All' to turn broken lines into continuous paragraphs.




