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.
- Paste diagram source and inspect the preview. Choose the renderer and theme that produce the result you want.
- Export as PDF. Allow the print window to open; use Print / Save as PDF in that window if the dialog does not appear automatically.
- Choose Save as PDF where your browser offers it. Check paper size, orientation, margins, and scale, then save and open the PDF to inspect it.
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 --> DraftCheck these settings in the print preview
| Setting | What to look for |
|---|---|
| Paper and orientation | The print view requests landscape with 10 mm margins. Browser settings can affect the final result; inspect the actual page preview. |
| Scale | Fit the whole diagram without making labels too small. For a very large diagram, split the content into smaller diagrams. |
| Margins and headers | Check that labels are not clipped. Browser-added headers and footers are controlled by the print dialog. |
| Theme and contrast | Choose 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.