How to Remove Headers and Page Numbers in Word After PDF Conversion
Question details
The user needs to remove repeated headers and page numbers that appear on the next line after converting a PDF file into a Word document.

- Product
- Word
- Device & OS
- not provided
- Scenario
- Cleaning up formatting issues and deleting unwanted pagination text after a PDF-to-Word conversion.
- Observed behavior
- During PDF conversion, headers and page numbers are often placed directly into the main text body, separated by irregular paragraph marks or line breaks instead of proper formatting.
Enable nonprinting characters in your Word document (usually by clicking the ¶ icon on the Home tab) to clearly see hidden line breaks, spaces, and paragraph marks before attempting to remove them.
Edit the Header and Footer Regions Directly
If the conversion correctly identified the text as headers or footers, deleting the text from the master header region is the easiest way to remove it throughout the document.
Headers and footers repeat automatically on each page. Because of this, using Find and Replace may not be necessary if the sections are properly linked.
Double-click on the very top edge of any page in your document to open the Header & Footer editing mode.
Highlight the repeating header text or the page number that you want to remove and press the Delete key.
Scroll through the document to ensure the text has been removed. If the document has unlinked sections, you may need to repeat this step for the first page of each new section.
Click 'Close Header and Footer' on the ribbon, or double-click anywhere in the main body text to return to normal editing.

Use Advanced Find and Replace with Exact Character Codes
Use this method if the PDF conversion forced headers and page numbers into the document's main body text as normal paragraphs.
Easily Convert PDFs and Manage Formatting in WPS Writer
Handling messy formatting after converting a PDF can be frustrating. With WPS Office, you get highly accurate PDF-to-Word conversions that preserve proper header and footer layouts, reducing the need for complex find-and-replace formulas.
- 1. Open your PDF in WPS Office: Launch WPS Office and open the original PDF file.
- 2. Convert to Word accurately: Navigate to the Tools tab and select 'PDF to Word'. This dedicated conversion engine handles layout elements far better than standard text extraction.
- 3. Easily edit the document: Open the converted document in WPS Writer. Double-click the header or footer area to safely remove repeated page numbers without affecting body text.
- 4. Use Find and Replace: If you still need to delete specific text strings, press Ctrl+H to access WPS Writer's powerful Find and Replace tool.

Frequently Asked Questions
Why do page numbers appear as normal text after converting a PDF to Word?
PDFs store text based on absolute positioning rather than structural elements. During conversion, if the software cannot recognize the text as a header or footer, it simply dumps the text into the main document body, resulting in repeating numbers mixed with standard paragraphs.
How do I find the exact hidden character code causing a line break?
Highlight the hidden character in Word, press Alt+F11 to open the VBA editor, then press Ctrl+G to open the Immediate window. Type 'Print Asc(Selection.Text)' and press Enter. The number returned is the ANSI character code for that specific break.
What wildcard characters represent paragraph marks and line breaks?
When 'Use wildcards' is disabled, you can use ^p for paragraph marks and ^l for manual line breaks. However, when 'Use wildcards' is enabled, ^p does not work; you must use the ANSI character code ^13 for paragraph marks and ^11 for manual line breaks.




