Remove Repeated Headers and Footers from PDF-to-Markdown Output

AI Tools Pick · Published 2026-11-04 · Documentation-based guide

Convert the PDF, select Preview margin cleanup, and review the repeated lines before removing them. If a page repeats the same words in its body, compare it with the original before you edit that page.

Clean up a converted document

  1. Open the PDF-to-Markdown converter and convert your PDF. Select a page range first if you only need part of the document.
  2. Under Review repeated headers and footers, choose Preview margin cleanup.
  3. Read the candidate lines and the source pages listed for them. Use the page comparison to check that they are actually in the margin. The page buttons in review hints take you directly to the corresponding source page and its Markdown.
  4. Select the lines you want to remove, then choose Remove selected lines. Use Undo cleanup if the result is wrong. Download the reviewed Markdown when it is ready.

See what happens when a header also appears in the body

In our six-page sample, every page has the same header and footer. Page 2 also contains the header's exact words in its body. Open that page in the original sample PDF to see both copies.

Before cleanup, page 2 contains two lines reading PUBLIC SAMPLE / REPEATED HEADER. The first is the header and the second is body text. The converter cannot safely tell which matching Markdown line came from the margin, so it leaves both copies on that page.

In the saved sample, selecting both candidates removed five headers and six footers. All six body sections stayed in the output. Page 2 still has its header and body copy, and its footer was removed. Compare the complete actual before output and actual after output.

If you want to remove the remaining page 2 header, open the source and Markdown side by side. Delete only the matching line above Section 2 in the page editor and choose Save page changes. Check that the second copy is still there.

When a line stays in the output

The preview considers short, exact text matches near the outer 5% of source pages. A candidate must appear on at least three selected pages and cover at least 60% of the selection. A two-page excerpt is too short to produce a candidate.

Pages with ambiguous matches or saved manual edits are skipped for the affected line. Numeric page labels, scans and rotated or shifted-crop pages are outside this automatic cleanup. If a header varies by chapter or a footer changes on every page, compare and edit the relevant page manually.

Undo cleanup is available while the saved page state and output still match the cleanup result. Download a copy before making further edits if you want to keep both versions.

Sample evidence: self-created PDF and saved converter outputs from the October 25, 2026 test. The line counts describe this six-page sample. Use the output checklist to review reading order, tables and links before reuse.