Formatting Issues

Fix Word Line Numbers Missing on Screen but Visible in PDF

John WilsonJohn Wilson Oct 29, 2026 870 views

Question details

Line numbers are not displaying in the Word document window, although they successfully appear when the document is exported or saved as a PDF.

How to Fix Word Line Numbers Missing on Screen but Visible in PDF
Product
Microsoft Word
Device & OS
not provided
Scenario
Reviewing and editing a document with line numbering enabled, prior to finalizing or printing.
Observed behavior
The line numbers are invisible on screen because negative paragraph indents push the text into the margin, covering or hiding the numbers. However, the PDF engine renders the full printable area, revealing them in the exported file.
Before you start

Confirm that your document is in Print Layout view and that line numbering is actively enabled from the Layout tab, as line numbers do not display in Draft or Web Layout views.

Solution 1Recommended

Remove Negative Paragraph Indents

Adjusting paragraph styles to remove negative indents prevents text from spilling into the margins and obscuring your line numbers.

When a paragraph has a negative left indent, the text is pushed outward into the margin where line numbers typically reside. Correcting this spacing allows both the text and the line numbers to display properly in the document window.

1
Select the affected text

Highlight the paragraphs where line numbers are missing, or press Ctrl+A to select the entire document.

2
Open Paragraph Settings

Right-click the selected text and choose 'Paragraph' from the context menu, or click the dialog box launcher in the Paragraph group on the Home tab.

3
Adjust the Indentation

Navigate to the 'Indents and Spacing' tab and locate the 'Indentation' section.

4
Remove negative values

Check the 'Left' (or 'Before text') indent value. If it is a negative number, change it to '0' or a positive value, then click OK to apply.

Remove Negative Paragraph Indents
Style Modification: If the issue is widespread, consider right-clicking the affected style (like Heading 1 or Normal) in the Styles gallery, clicking 'Modify', and fixing the paragraph format there to update all instances at once.
Efficient Document Formatting

Easily Manage Line Numbers and Styles with WPS Writer

WPS Writer provides an intuitive and user-friendly interface to manage paragraph formatting, styles, and line numbering without visual glitches or layout confusion.

  1. 1. Open the document in WPS Writer: Launch WPS Office and open your .docx file. WPS Writer fully supports Microsoft Word styles and formatting.
  2. 2. Verify Line Numbering: Navigate to the Page Layout tab and click 'Line Numbers' to ensure they are enabled for your document.
  3. 3. Access Paragraph settings: Highlight the text missing line numbers, right-click, and select 'Paragraph' from the drop-down menu.
  4. 4. Correct the indents: In the Indents and Spacing tab, ensure the 'Before text' value is set to 0, then click OK to reveal your line numbers immediately.
Visually adjust paragraph indents and spacing with an easy-to-use ruler and formatting panel.Fully compatible with Microsoft Word (.docx) formats, ensuring your styles and margins remain intact.Reliable Print Layout rendering that accurately displays line numbers exactly as they will print or export to PDF.
microsoft office alternative - wps office

Frequently Asked Questions

Why do line numbers show up in my PDF but not in the Word document?

Word's on-screen Print Layout can sometimes obscure elements if paragraph indents are negative, pushing text over the line numbers. The PDF rendering process, however, captures the entire printable canvas, which often bypasses these visual on-screen overlaps, making the numbers visible in the final export.

How do I turn on line numbers properly in Word?

Go to the Layout (or Page Layout) tab, find the Page Setup group, and click on Line Numbers. Choose 'Continuous', 'Restart Each Page', or 'Restart Each Section' depending on your formatting needs.

Can I view line numbers in Draft view?

No. Draft view is designed to simplify the document layout for quick editing and deliberately hides page-level elements like margins, headers, footers, and line numbers. You must switch to Print Layout view (View > Print Layout) to see them.

How can I update a paragraph style to fix all negative indents at once?

Go to the Home tab and locate the Styles gallery. Right-click the style you want to fix (e.g., Normal or Heading 1) and select 'Modify'. Click the 'Format' button at the bottom left, choose 'Paragraph', set the left indentation to 0, and click OK. This will automatically fix all paragraphs using that style.