How to Remove a Horizontal Line from a Word PDF Export
Question details
The user needs to remove a persistent horizontal line that appears only after exporting a document to PDF, despite not being visible in the standard document view.

- Product
- Word for the web
- Device & OS
- not provided
- Scenario
- Exporting a formatted Word document to a PDF file.
- Observed behavior
- A horizontal line appears in the final exported PDF that cannot be seen or easily removed using standard paragraph settings in the web version of Word.
Ensure you are editing the original Word document rather than the exported PDF, as formatting issues like orphaned borders must be resolved in the source file before exporting.
Clear Orphaned Paragraph Borders
Select the entire document and apply a 'No Border' setting to remove hidden borders that only render during the PDF conversion process.
Often, horizontal lines in exported PDFs are caused by orphaned paragraph borders. These borders may not display properly in the web view of your document but will render distinctly when converted to a fixed-layout PDF.
Click anywhere inside your document and press 'Ctrl + A' (Windows) or 'Cmd + A' (Mac) to select all the text and elements.
Navigate to the 'Home' tab on the ribbon. Locate the 'Borders' icon in the Paragraph group and click the small dropdown arrow next to it.
Select 'No Border' from the dropdown list. For a more thorough reset, click 'Borders and Shading' at the bottom of the list, choose 'None' under the Setting column, and click 'OK'.
Go to 'File', select 'Export', and choose to create a PDF. Review the new PDF to confirm the horizontal line has been successfully removed.

Clear Formatting and Reapply Styles
Strip away all hidden formatting from the problematic text section to ensure no corrupted styles are forcing a line break.
Export Clean PDFs Seamlessly with WPS Office
If you are experiencing persistent formatting bugs in other web editors, try opening and exporting your document with WPS Writer. It provides robust formatting controls and a highly accurate PDF conversion engine to ensure your exported files look exactly as intended.
- 1. Open Your Document: Launch WPS Office and open your existing Word document using the WPS Writer application.
- 2. Verify Formatting: Scroll through your document. WPS Writer's accurate layout engine will reveal any hidden borders. Use the Home tab to remove them if necessary.
- 3. Export Directly to PDF: Click on 'Menu' in the top-left corner, select 'Export to PDF', adjust your save settings, and output a perfectly clean file.

Frequently Asked Questions
Why does a horizontal line appear in my PDF but not in the Word web view?
Web-based document editors often use simplified rendering engines that may hide complex or orphaned formatting elements like paragraph bottom borders. When you export to a fixed format like PDF, the complete formatting code is processed, revealing these hidden lines.
How do I remove a line that was created by typing three dashes?
Typing three dashes and pressing Enter triggers Word's AutoFormat feature, converting the dashes into a solid paragraph border. To remove it, place your cursor directly above the line, navigate to the Home tab, open the Borders dropdown menu, and select 'No Border'.
Can I edit the exported PDF directly to remove the line instead?
Yes. If you have a dedicated PDF editor such as WPS PDF, you can open the exported file, enter Edit mode, click on the horizontal line object to select it, and press the Delete key. However, fixing the source Word document is recommended for future edits.




