# Printing

Print one page, a whole folder or a list of pages, on the paper, margins and footer you choose.

## The Print preview

Documents and folders have a **Print** button, the printer icon at the top right. ⌘P on a Mac, Ctrl+P elsewhere, opens the same preview. Click **Print** in the preview, or press ⌘P again, to open your browser's print dialog.

Dunjii lays out every printed page itself, so the preview shows the pages as they will print. Above it:

- **Current page** prints the page you're on. **Entire folder** prints every document and image in its folder and the folders under it.
- **Theme**: **Inherit from campaign** prints each page in its folder's theme. Pick another theme to use it for this print only. See [Themes](https://dunjii.com/docs/layout-and-printing/themes.md).
- **Optimize for**: **Single-sided** or **Double-sided**. See below.
- **Text size**: 100% to 200% of each document's own text size. Maps, cards and coins print at a fixed size, so it doesn't change them.

Dunjii remembers **Optimize for** and **Text size** in this browser. The Print button is hidden in windows 768 px wide or narrower, because phone browsers print these pages blank or not at all.

![The Print preview for one page of a session.](https://dunjii.com/docs-assets/layout-and-printing/print-preview.webp)

## Printing a folder

The **Print** button on a folder page prints every document and image in that folder and its subfolders, up to 100 files. The preview lists the files beside the pages:

- Uncheck a file to leave it out.
- Drag a file to move it. Shift-click or ⌘-click to select several and drag them together.
- Click a file to scroll the preview to it.

The list starts grouped by type (NPCs, Scenes, Shops and so on) and alphabetical within each group. Dunjii remembers your changes for each folder in this browser. A picture that another document in the print already shows starts unchecked.

To print documents from different folders together, make a print list: a document named `print.md`, or with a name ending in `.print.md`, that links to them. Its Print preview offers **Referenced files**, which prints the linked files in the order the list gives them.

```markdown
# Session 4 handouts
- [[Watch Orders]]
- [[The Greyfen Watchtower]]
- [[Eldric Vael]]
```

- `# Session 4 handouts`: This file is Handouts.print.md.

![Printing the session-1 folder, with one shop left out.](https://dunjii.com/docs-assets/layout-and-printing/print-folder.webp)

## Paper and margins

Set your default paper and margins in **Settings › Pages**, under **Printing**. They apply to every document that doesn't set its own, on screen and on paper. The paper starts as Letter if you signed up in the US, Canada, Mexico, the Philippines or Chile, and as A4 everywhere else.

| Paper | Value | Size |
| --- | --- | --- |
| Letter | `letter` | 8.5 × 11 in |
| Legal | `legal` | 8.5 × 14 in |
| Tabloid | `tabloid` | 11 × 17 in |
| A4 | `a4` | 210 × 297 mm |
| A3 | `a3` | 297 × 420 mm |
| A5 | `a5` | 148 × 210 mm |

| Margins | Top and bottom | Left and right |
| --- | --- | --- |
| Standard | 0.65 in | 0.75 in |
| Compact | 0.5 in | 0.5 in |
| Minimum | 0.25 in | 0.25 in |

Standard leaves room for a three-hole punch. **Custom** takes one number for top and bottom and one for left and right; click **Opposite sides match** to set each side on its own. On A4, A3 and A5 the numbers are in millimeters.

To change one document, open it, click **Layout** at the foot of the page, and open **Print**. A `default` tag marks a setting that follows your account. Pick another value to set it for this document only, or click **Use default** to go back. Dunjii writes the document's choice into its frontmatter:

```markdown
---
print:
  paper: a4
  margins:
    left: 1.25
---
```

- `paper: a4`: A value from the paper table above.
- `left: 1.25`: Inches. Name only the sides you change; the rest follow your account.

A card sheet, coin sheet or battle map has the same **Paper** and **Margins** rows under **Document settings**, the page icon at the top right. A print job has one paper size, so a folder print or a print list uses your default paper, not each document's.

Most printers leave about 0.2 in at the edge of the paper blank. **Show the printer's edge**, under **Print** in Layout, draws that strip on the page.

![The Print menu in Layout, with Margins open.](https://dunjii.com/docs-assets/layout-and-printing/print-margins.webp)

## Footer

A page can end with a footer: a license notice, a line of your own, and a line naming Dunjii. Set the defaults in **Settings › Pages**, under **Footer**. The notices are **Unofficial Fan Content (Wizards of the Coast)**, only for work you give away, and **SRD 5.2.1 attribution**, for SRD text you typed in yourself.

To change one document, open **Print** in Layout and click **Footer**. Pick the footer it inherits, **Hidden**, or **Custom…** to choose its own notice and line.

On the free plan the Dunjii line always prints. On Pro it starts off, and you can turn it on. Text copied from the Sourcebook prints its license notice even when the footer is hidden.

A folder's `metadata.md` can set the footer for everything under it, with the keys in [Folder settings](https://dunjii.com/docs/organizing/folder-settings.md). A document uses the same keys in its own frontmatter:

```markdown
---
footerPreset: wotc-fan-content
footerText: Mistwood campaign handouts
---
```

- `footerPreset: wotc-fan-content`: The Fan Content Policy notice. none removes a notice the document inherits.
- `footerText: Mistwood campaign handouts`: Your own line, under the notice.

![The Footer row for a handout with its own notice and line.](https://dunjii.com/docs-assets/layout-and-printing/print-footer.webp)

## Double-sided printing

Set **Optimize for** to **Double-sided** in the Print preview, and turn on two-sided printing in the browser's print dialog. Dunjii then:

- adds a blank page after any document or sheet with an odd number of pages, so the next one starts on a new sheet of paper;
- prints a back for each [battle map](https://dunjii.com/docs/layout-and-printing/battle-maps.md) sheet with its label, so you can tell which sheets belong together;
- swaps the left and right margins on the backs, if you checked **Mirror on back sides**.

**Mirror on back sides** appears under **Margins** when the left and right margins differ. It keeps a wide binding margin on the same edge of the paper on both sides. It assumes the printer flips the paper on the long edge, which is the usual setting for portrait pages.

## The browser's print dialog

Dunjii sets the paper size and draws the margins inside each page. In the browser's dialog:

- Check that the paper matches the paper you picked in Dunjii.
- Leave the margins and the scale at their defaults. Scaling the page changes the size of cards, coins and map squares.
- To save a PDF instead of printing, choose **Save as PDF** as the destination. In Safari on a Mac it is in the **PDF** menu.

When text or a picture on a page lies in the strip most printers can't print, the Print preview says so. Widen the margins in Dunjii, or scale the page to fit in the browser's dialog, which also shrinks cards, coins and map squares.

Classic Parchment prints its paper texture without the dialog's background graphics option.
