# Exporting & sharing
Export a Markdown file to PDF
Last updated
To turn a Markdown file into a PDF in Unmarked, press ⇧⌘E and choose PDF. Pick Letter or A4, set your margins, and add page numbers or a running header if you want them. The PDF is built on your Mac. Nothing is uploaded to a web converter.
Export to PDF
- Open the file in Unmarked.
- Press ⇧⌘E (or pick Export from the File menu).
- Choose PDF as the format.
- Set the options you want, then choose where to save.
Everything that renders in Read mode carries over: headings, lists, tables, blockquotes and local images. Math is typeset as real vector text, not a picture of an equation. A code block tagged with its language comes out in color, and a rendered Mermaid diagram becomes an image sized to fit the page. Links stay clickable, and a link to a heading inside the document is styled but doesn't jump. Footnotes ([^1]) come through as the plain text you typed.
Text comes out at a standard document size, about 11-point body with proportionally scaled headings. Export uses Unmarked's fixed style, code colors included, so the result looks the same whatever theme or font you've picked in Settings.
The options
Page size is Letter or A4. Margins set the space around the text. Landscape is there for files with wide tables that would otherwise get squeezed. Page numbers and a running header are both optional, off until you switch them on. The header repeats at the top of every page.
Pages break between blocks, and long lines in code blocks wrap instead of running off the edge. Tables keep proportional column widths, so they stay readable on the page.
Print and "Save as PDF"
PDF export and Print (⌘P) share one renderer, so Save as PDF in the print dialog gives you the same document.