Formatting Issues

How to Remove a Horizontal Line from a Word PDF Export

Steve KSteve K Oct 23, 2026 873 views

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.

How to Remove a Horizontal Line from a Word PDF Export
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.
Before you start

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.

Solution 1Recommended

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.

1
Select All Document Content

Click anywhere inside your document and press 'Ctrl + A' (Windows) or 'Cmd + A' (Mac) to select all the text and elements.

2
Open Borders and Shading

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.

3
Apply No Border

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'.

4
Export to PDF

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 Orphaned Paragraph Borders
Tip: If the document is extremely large, try applying the 'No Border' setting only to the specific paragraphs immediately before and after where the line appears in the PDF.
Professional Document Export

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. 1. Open Your Document: Launch WPS Office and open your existing Word document using the WPS Writer application.
  2. 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. 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.
Precise PDF export with zero hidden formatting artifactsHighly compatible with Microsoft Word formats (.docx, .doc)Built-in PDF editor for adjusting files after exportFree, lightweight, and features a familiar user interface
microsoft office alternative - wps office

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.