# Markdown to PDF

The editor on the left takes Markdown or plain text; the right side shows real pages as they will print. Set the theme, paper size, orientation and margins, add a running header, page numbers and a contents page, and the preview reflows as you go. Your draft is kept on this device, so closing the tab doesn’t lose it.

- Page: https://hexflowtools.com/pdf/from-markdown
- Section: [PDF](https://hexflowtools.com/pdf)
- Revised: 2026-11-25
- Cost: $0; works without an account; output carries no watermark
- Data handling: the visitor's own browser opens and processes each file; HexFlow servers never receive it

## Step by step

1. Type in the editor, paste your text, or use “Open .md / .txt”. “Add picture” drops in a photo from your files.
2. Pick a theme (GitHub look, Academic or Compact), the paper, orientation and margins.
3. Fill in “Header text”, choose a page number style, and tick “Contents page (linked, with page numbers)” if you want one.
4. Save with “Print or save as PDF (real text)”, or use “Quick download (pages as pictures)” for a one-click file.

## Common questions

### Which of the two save buttons should I use?

“Print or save as PDF (real text)” opens your browser’s print window. Pick “Save as PDF” there and you get selectable, searchable text with clickable links. “Quick download (pages as pictures)” skips the print window, but every page is stored as a picture, which makes the text unsearchable and the file heavier.

### How do I force a new page?

Put <!-- pagebreak --> on a line by itself. The preview shows the break right away.

### Why did an online image turn into a dashed box?

Some sites refuse to let other pages read their images. In the quick download those pictures are swapped for a placeholder. Save the image to your computer and use “Add picture” instead.

### Can the first page go without a header?

Yes. Tick “Hide header and footer on page 1”, which suits a title page.
