---
title: Export and print
subtitle: Save a page, a section or the whole site as PDF, or export Markdown that works offline.
description: "Exporting and printing with ButterIX: printing a page, PDFs of a section or the whole site, a ZIP of Markdown with images, and the options of biti export."
---

## Print a page

Readers choose **Print / Save as PDF** in a page's **More actions** menu, or press <kbd>Ctrl</kbd> / <kbd>⌘</kbd> + <kbd>P</kbd>. Only the page itself is on the paper:

- tabs, code groups, accordions, nested API fields and the example of every response are opened up;
- long code lines wrap instead of being cut off;
- dark mode prints in light colors;
- videos and embedded pages become their address.

To leave the entry out, use [`theme.page-actions`](../configuration/docs-yml.mdx#theme).

## Export a section or the whole site

In the console, open the site's overview and select **PDF or Markdown…** under **Export**, then pick the language, the version and the contents (everything, a tab, or a section). What you get is the live version, without hidden pages.

<Tabs>
  <Tab title="PDF">
    Opens the site's print page: a cover, the contents, then every page in the order of the navigation. Once it's ready, choose **Save as PDF** in the browser's print dialog. The contents and the links between pages work in the PDF.

    With a lot of pages, exporting tab by tab or section by section is faster.
  </Tab>
  <Tab title="Markdown">
    Downloads a ZIP with one `.md` per page; `README.md` is the table of contents. Links between pages and images point to files in the ZIP, so everything works offline once unpacked. Links to pages outside it keep their address on the site, and so do images and files beyond 50 MB in total. If there is too much content, export tab by tab or section by section.
  </Tab>
</Tabs>

<Warning>
  If the site is password protected, the exported file isn't: anyone who gets it can read it.
</Warning>

## Command line

`biti export` exports the version published on the platform, for example to archive it in CI. Run `biti login` first (in CI, set `BITI_TOKEN`):

```bash
biti export --format markdown --out docs.zip
biti export --format pdf --only "API Reference" --lang en
```

<ParamField path="--site" type="string">Site slug; defaults to the first subdomain label of `instances[0].url` in `docs.yml`.</ParamField>
<ParamField path="--format" type='"markdown" | "pdf"' default="markdown">Markdown is packaged by the platform. PDFs are made by the Chrome, Chromium or Edge on your machine, which opens the site's print page; if it isn't in the usual place, set the `CHROME_PATH` environment variable. PDF works for public sites only; for a password-protected site, [open the print page](#export-a-section-or-the-whole-site) in your browser and print it there.</ParamField>
<ParamField path="-o, --out" type="string">A `.zip`, a `.pdf`, or an empty folder (Markdown). By default the file is named after the site, in the current directory.</ParamField>
<ParamField path="--only" type="string">Export one tab or section, by its title.</ParamField>
<ParamField path="--list" type="boolean">List the languages, versions, tabs and sections.</ParamField>
<ParamField path="--lang, --product, --docs-version" type="string">Language, product and version; the site's defaults if left out.</ParamField>
<ParamField path="--paper" type='"a4" | "letter"' default="a4">Paper size of the PDF.</ParamField>

PDFs made by `biti export` have bookmarks.
