How to Remove a Gray Border That Is Not a Page Border in Word
Question details
A gray border appears on all pages, prints, and exports to PDF, even when the Page Borders setting is configured to 'None'.

- Product
- Microsoft Word
- Device & OS
- not provided
- Scenario
- The user is trying to print or export a document to PDF without a persistent, unwanted gray border appearing on the pages.
- Observed behavior
- The gray border remains visible on prints and PDFs because it is a manually drawn shape or graphic anchored in the document header or footer, rather than a built-in page border.
Ensure your document is in 'Print Layout' view so you can easily see, select, and modify objects anchored in headers or footers.
Remove the Anchored Shape from the Header or Footer
Access the header and footer area to select and delete the manual shape acting as a border.
When page borders are set to 'None' but a border still appears across all pages, it is typically a rectangle shape manually inserted into the header or footer background to mimic a border. Deleting this object will solve the issue.
Double-click near the top or bottom margin of any page to open the Header & Footer tools.
Move your cursor over the gray border line and click on it to select the shape or text box that has been anchored to the page.
Press the 'Delete' or 'Backspace' key on your keyboard to completely remove the shape from all pages.
Double-click anywhere in the main document body or click the 'Close Header and Footer' button on the ribbon to return to normal editing.

Use the Selection Pane to Find Hidden Borders
If the border shape is placed behind text or is difficult to click, use the Selection Pane to find and remove it.
Edit Headers and Remove Borders Easily with WPS Office
WPS Office provides a highly compatible and intuitive word processor where you can easily manage headers, footers, and page borders without complex hidden settings.
- 1. Open the Document: Launch WPS Office Writer and open your problematic Word document.
- 2. Enter Header/Footer: Double-click the top margin of the page to instantly activate the header editing mode.
- 3. Delete the Border: Click on the gray border graphic to select it and press the Delete key.
- 4. Export to PDF: Go to Menu > Export to PDF to save a clean, border-free version of your document.

Frequently Asked Questions
Why doesn't changing the Page Borders to 'None' remove my border?
The Page Borders setting only controls built-in document borders. If a user manually drew a rectangle or inserted an image to act as a border and anchored it to the header or footer, the standard settings will not detect or affect it.
How can I tell if a shape is anchored in the header?
If a shape or border repeats on every page of your document but cannot be clicked or selected during normal text editing, it is likely anchored in the header or footer area. You must enter the header mode by double-clicking the top margin to select these objects.
Can background watermarks cause a similar gray border issue?
Yes, custom watermarks are placed in the header and footer background. If an image watermark has a visible border or a text watermark is housed inside a bordered box, it will show up on every page. You can remove it by accessing the header or using the 'Remove Watermark' option in the Design tab.




