Tools / Editor

Mermaid to PDF: Print & Save

Export a Mermaid diagram through your browser’s print view. Choose Save as PDF and review paper size, orientation, margins and text readability.

Prepare a diagram for a PDF document

Use PDF for a review handout, report attachment, or printable diagram. The editor opens a print view containing the rendered diagram; your browser handles Save as PDF. This workflow gives you the browser’s paper and scaling options rather than a direct PDF download.

A compact approval flow for a review handout

Diagram source

flowchart LR
  Draft[Draft proposal] --> Review{Approved?}
  Review -->|Yes| Publish[Publish]
  Review -->|No| Revise[Revise]
  Revise --> Draft
A short, horizontal flow suits a landscape page. Check the smallest labels at the intended print size before saving, especially when the diagram has many branches.

Check these settings in the print preview

SettingWhat to look for
Paper and orientationThe print view requests landscape with 10 mm margins. Browser settings can affect the final result; inspect the actual page preview.
ScaleFit the whole diagram without making labels too small. For a very large diagram, split the content into smaller diagrams.
Margins and headersCheck that labels are not clipped. Browser-added headers and footers are controlled by the print dialog.
Theme and contrastChoose a legible theme for the paper or document background. Check the saved PDF rather than relying only on the editor preview.

Common questions

Why did no PDF file download?

PDF export opens a browser print flow. Choose a PDF destination and save from that dialog. Availability and wording vary by browser and operating system.

Why did nothing open?

Your browser may have blocked the new print window. Allow pop-ups for this site and export again. The print window also includes a button to reopen the print dialog.

Should I use PDF, SVG, or PNG?

Use PDF for a printable document, SVG for scalable artwork, and PNG for applications that expect a raster image. Keep the diagram source separately if you want to edit the structure later.