Mac guide
Print a rendered preview for free, use Pandoc for automation, or choose a native exporter for controlled pages and themes.
A Markdown file must be rendered before it becomes a readable PDF. The right method depends on whether you need one quick copy, a repeatable command, or a polished document with predictable page breaks.
Short answer
Avoid uploading confidential notes to an online converter unless its privacy model is acceptable for that document. Every method below can run locally on the Mac.
Method 1 - free
The PDF inherits the preview's fonts, spacing and print stylesheet. This is the simplest route for one document, but a screen-oriented preview can produce awkward page breaks. Apple's Save a document as a PDF guide documents the same system print flow.
Method 2 - open source
For a repeatable command or build script, Pandoc converts Markdown directly to a named PDF:
pandoc notes.md -o notes.pdf
Pandoc's default PDF route requires a LaTeX engine. Its official manual also documents other PDF engines and intermediate output when you need to debug or customize the result.
Method 3 - visual
PX7 Typeset opens the local source, shows the rendered document, and exports a paginated A4 PDF without a separate Pandoc or LaTeX installation. Choose Manuscript, Modern or Academic; YAML front matter becomes the title block, while headings stay with introductory paragraphs and tables or code blocks are kept from splitting across page breaks.
EUR 12 once · no subscription · no account · macOS 14+ · Apple silicon or Intel
Comparison
Use Print to PDF when the preview already looks right. Use Pandoc when the conversion belongs in a script or needs custom templates. Use Typeset when you want to inspect the final layout and export a polished PDF without assembling a toolchain.
Quick answers
Yes. Render the local Markdown file, press Command-P and choose Save as PDF. Pandoc and native Mac exporters can also work entirely on the Mac.
No. First render the Markdown in a compatible app or convert it to HTML or PDF; Preview can then open the PDF output.
Pandoc uses LaTeX by default for PDF output, so that route needs a LaTeX engine. Pandoc also supports other PDF engines through its command-line options.
Use a print stylesheet or exporter with page-break rules for those elements. PX7 Typeset applies those rules to tables and code blocks in its paginated PDF output.
PX7 Digital makes PX7 Markdown Typeset. The free system method and open-source Pandoc route are listed first because either may be all you need. Apple and Pandoc instructions were checked on 27 August 2026. Something out of date? Tell us.