Fix Word to PDF Export Changing Spaces to Line Breaks When Copied
Question details
Copying text from a PDF generated by Word converts spaces into line breaks instead of keeping the normal formatting.

- Product
- Microsoft Word 2013
- Device & OS
- not provided
- Scenario
- Exporting a Word document to a PDF and then copying text from the PDF to a plain text editor like Notepad.
- Observed behavior
- Text looks visually correct in the PDF, but spaces are converted to unexpected line breaks when pasted into another application.
Ensure you have the original Word document available for re-exporting and that you test the copied text from a downloaded PDF file using a dedicated desktop PDF reader, not just a web browser preview.
Disable Document Structure Tags in PDF Options
Disabling accessibility structure tags during the Word to PDF conversion can prevent spaces from breaking into new lines when copying.
By default, Word may include document structure tags to improve accessibility for screen readers. However, these hidden tags can sometimes interfere with the text layer's plain text interpretation, causing spaces to be read as hard line breaks in simple editors like Notepad.
Open the problematic document in Microsoft Word, click on 'File' in the top-left corner, select 'Save As', and choose your destination folder.
Click on the 'Save as type' dropdown menu and select 'PDF (*.pdf)' from the list of formats.
Click on the 'Options...' button located just below the file type selection and file name fields.
Under the 'Include non-printing information' section, uncheck the box for 'Document structure tags for accessibility'.
Click 'OK' and then 'Save' to generate the new PDF. Open the new file in a PDF reader, copy the text, and paste it into Notepad to verify the spaces are intact.

Test with an Alternative PDF Reader
Sometimes the issue is caused by how a specific PDF viewer misinterprets the text layer during the copy action, rather than a flaw in the PDF file itself.
Export Word to PDF Without Formatting Errors Using WPS Office
Use WPS Office to convert your documents to PDF without formatting loss or copy-paste errors. WPS Writer ensures the text layer is perfectly preserved, making copying text to plain text editors smooth and error-free.
- 1. Open your document: Launch WPS Office and open your Word document in WPS Writer.
- 2. Access the PDF export tool: Click on the 'Menu' button in the top left corner and select 'Export to PDF'.
- 3. Configure export settings: In the prompt, choose your preferred export settings, such as export range or save path.
- 4. Export the file: Click the 'Export to PDF' button to instantly generate a high-quality PDF.
- 5. Verify the text: Open the newly generated PDF, highlight your text, and copy it to Notepad to confirm perfectly preserved spaces.

Frequently Asked Questions
Why does copying from a PDF sometimes result in weird line breaks?
This happens when the PDF generation process creates a complex text layer or adds invisible structural tags that plain text editors like Notepad misinterpret as hard returns or paragraph breaks.
Can I keep structure tags for accessibility but fix the spacing issue?
Yes, but you typically need a professional PDF editor to manually inspect and correct the reading order and tagging tree of the PDF, rather than relying solely on Word's automated export.
Does this issue happen when copying from a browser's PDF viewer?
Web browser PDF viewers handle text layers differently than desktop applications. Users often report this space-to-line-break issue happens primarily when copying from a downloaded PDF opened in a standalone desktop reader, whereas the browser preview might copy perfectly.
How can I remove hidden formatting in my Word document before exporting?
Select the text in your Word document and use the 'Clear Formatting' button (usually an 'A' with an eraser icon) in the Home tab. Afterward, re-apply standard styles to ensure no hidden paragraph properties interfere with the PDF export.




