Primary navigation
English
Markdown to Word

How to Set Up a Markdown PDF: Page Numbers, Contents, and Headers

When a Markdown PDF needs a cover, contents page, running header, and page numbers, the hard part is not finding a converter. It is choosing settings that agree with the document’s purpose. Use the PDF workspace for a fixed handoff, set page and structure options before export, then inspect the downloaded PDF because its pagination is produced by the PDF renderer, not the HTML preview.

Markdown PDF layout settings for a cover, table of contents, running header and page numbers
Choose page structure before export, then check the rendered PDF itself.

Choose the output before adjusting the page

PDF is the better handoff when readers need a stable page layout for review, printing, or archiving. If they need to revise paragraphs, tables, or equations, use the DOCX workspace instead. The HTML preview is useful for checking content flow, but it cannot prove that the final PDF has the same pagination or font metrics.

Open Markdown to PDF, add Markdown by pasting or uploading a file or ZIP, and select the intended PDF template. If a ZIP contains more than one Markdown file, choose the entry document before configuring the output.

Set the page in this order

  1. Paper and orientation: use A4 for many international office handoffs or Letter for US workflows. Choose landscape only when a wide table or diagram is more important than portrait reading.
  2. Margins: start with the default balanced margins, then widen them only if printed notes or binding need room. Narrow margins can make dense content harder to annotate.
  3. Cover and contents: enable a cover when the document has stable title metadata. Keep the table of contents when readers need to jump among sections; set its depth to the heading levels that actually appear in the document.
  4. Heading numbers and bookmarks: if automatic numbering is on, remove typed numbers from headings to avoid “1. 1.”. Bookmarks help readers navigate a long PDF in a viewer.
  5. Header, footer, and page number: add only information useful on every page, such as a short document title. Choose whether numbering starts at the cover or first body page and check the first numbered page after export.

Practical default: for a report, use portrait A4 or Letter, a cover, a contents page for multiple sections, bookmarks, and page numbers that exclude the cover. For a short memo, disable the cover and contents page; the extra pages add navigation without helping the reader.

Why the preview and PDF can differ

The live preview is HTML for visual reference. The final PDF uses the PDF renderer’s pagination and font handling, so a heading can move to another page, a table can wrap differently, or a font substitution can alter line breaks. This is why page count and running furniture must be checked in the downloaded PDF, not inferred from the preview.

  • Open the PDF and inspect the cover, contents, first body page, and final page.
  • Check that every contents entry points to the expected section and that page numbering follows your chosen start.
  • Review wide tables, long code lines, formulas, and diagrams at normal zoom and at print size.
  • If a heading is stranded at the bottom of a page, revise the source or page settings and export again.

Common setting mistakes

Symptom Likely cause What to change
Duplicate heading numbers Numbers are typed in Markdown and generated automatically. Remove the typed prefix or turn automatic numbering off.
Contents page is too long The selected depth includes minor subsections. Reduce TOC depth to the levels readers need.
Page numbers appear to start too late Cover exclusion or start number differs from expectations. Check the cover and page-number options in the PDF itself.

For a reusable source-to-output checklist, see the Markdown conversion troubleshooting guide. For the editable version of the same source, compare the Word workspace.

Sources

Share this article

Send it to a teammate or save it for later.