Write and PublishPDF Export

PDF Export

Export your live documentation, or the pages you choose, as one PDF, printed with a PDF template that sets its paper, cover, header, footer, and fonts.

Export your live site as a single PDF for offline reading, a compliance submission, a printed handover, or a customer deliverable. Pick the pages, and pick a PDF template that sets how the PDF looks: its paper, cover page, header image, page numbers, footer text, watermark, fonts, and colours. The PDF holds the pages in navigation order, with a clickable outline you can jump around in.

Before you begin

  • PDF export is available on the Professional and Enterprise plans.
  • You need the Admin role on the documentation to start or download an export, or to change PDF templates.
  • The export reads your live site. Publish the changes you want in the PDF first. Unpublished edits and working versions are not exported.

How to export your site as a PDF

Open Exports

In the dashboard, open Settings and select Exports under Advanced.

Open the export dialog

Click Export PDF. If your site already has a PDF, the button reads Export Again, and the dialog opens on that export's file name, template, and pages.

Name the PDF

File name is the name the PDF downloads under, with .pdf added for you. It starts as your site's name. Change it to say what this PDF holds, such as "Onboarding pack" for a few chosen pages. A name can be up to 100 characters and cannot contain \ / : * ? " < > |.

Choose a PDF template

PDF template shows the template the PDF prints with. It starts on your default template, tagged Default. Click it to pick another. To add, edit, or delete templates, see PDF templates.

The PDF template list, with Standard tagged Default, three more templates, and New template at the bottom
The template list. The pencil beside a template edits it.

Choose the pages

An export holds every page of your site unless you narrow it. Open Pages to see them as they sit in your navigation, with your products, versions, and languages as the top groups. Untick a page to leave it out, or untick a group to leave out every page in it. Use Search pages to find a page by name. The line beside Pages shows how many pages the PDF will hold, such as "12 of 42 pages".

The export dialog with a file name, the Customer handover template, and the page list with one page unticked
Untick a page or a group to leave it out of the PDF.

Start the export

Click Export PDF. Exports shows the progress page by page, and you can leave the page while it runs. To stop it, click Cancel. When it finishes, you get an email with a link back to Exports.

Download the PDF

Click Download PDF. The PDF downloads under the name you gave it, which shows under the button, such as "Onboarding pack.pdf".

PDF templates

A PDF template is a saved design for your exports. Every site starts with one template, Standard: A4, portrait, page numbers at the bottom centre, Inter, and your site's colours. Add your own for each kind of PDF you send out, such as a customer handover with a cover page or a draft with a watermark. A site can have up to 20 templates.

Templates live in the export dialog: you add, edit, and delete them from the PDF template list.

Create or edit a template

Open the template list

Open Settings, select Exports, click Export PDF, and click PDF template in the export dialog.

Open a template

Click New template at the bottom of the list, or the pencil beside a template to edit it. Edit beside the list edits the template that is picked. The template opens in place of the export dialog.

Name it and set how it prints

Give the template a name your team will recognise in the export dialog, then work through the sections. Click a section to open or fold it. A section with a switch prints only while its switch is on. See Template settings.

The template editor, with its settings sections on the left and a preview of a printed page on the right
The settings sections beside the preview of a page.

Make it the default, if you want

Turn on Default template to have exports use this template unless another one is picked, API exports included. See Set the default template.

Check the preview

The preview beside the settings follows every change. When the template has a cover page, switch between Cover and Page. Use the zoom buttons to look closer, or Fit to see the whole sheet.

Save

Click Create template, or Save changes on a template you are editing. The export dialog comes back with the template picked, and your file name and pages as you left them. Back, or Export PDF at the top, returns to the export dialog without saving.

Template settings

SectionWhat you set
LayoutPage size: A4, Letter, Legal, A3, or A5. Orientation: portrait or landscape. Margins: normal, narrow, or wide.
Text stylesFor headings: Heading font, Heading size, and Heading colour. For paragraphs: Paragraph font, Paragraph size, and Paragraph colour. Then Link colour.
Page numbers"Page 1 of 10", "Page 1", or "1" at the bottom of every page, on the left, centre, or right.
Footer textOne line of up to 120 characters, such as a copyright or confidentiality notice, with its size and colour.
Cover pageA first page with a Title, a Description, the export date if you want it, a Logo (your site's logo, another image, or none), and an Accent colour for the bar at the top of the cover and the line under the title.
Header imageYour site's logo or another image at the top of every page, in one of three sizes, on the left, centre, or right.
WatermarkText of up to 30 characters, or an image, printed faintly across every page. Set its angle (diagonal or straight) and opacity.
  • Heading size sets how large each page's title prints, from 20 to 40 px. Smaller headings scale with it, so a page keeps its proportions. It starts at 28 px, the size titles print at on A4 paper.
  • Paragraph size sets how large paragraphs and lists print, from 12 to 24 px. It starts at 15 px.
  • The cover's title starts as your site's name. Change it, or leave it empty to keep printing the site's name. The title and description print in the fonts and colours of Text styles, at the cover's own sizes.
  • Show export date prints the day of the export under the cover's description, such as "November 23, 2026".
  • The header image, page numbers, footer text, and watermark print on every page after the cover. The cover counts as page 1, so the page after it reads "Page 2".
  • Footer text prints on the line above the page numbers, on the same side. A line too long for the page is cut short.
  • Page numbers read in English, whatever the language of the pages.
  • Images come from your media library. Click Choose image to pick one or upload a new one. A template prints PNG, JPEG, SVG, and WebP images.
  • Site logo is the logo of your live site. On a site without a logo, the cover and the header image take an image of their own instead.
  • Fonts are Inter, Roboto, Open Sans, Lato, Montserrat, Source Sans 3, Noto Sans, IBM Plex Sans, Merriweather, Lora, Noto Serif, and Source Serif 4.
  • Colours left empty print with your site's own colours.

Set the default template

The default template is the one the export dialog picks first, and the one the API prints with when a request names none. It carries a Default tag in the template list. To change it, open another template, turn on Default template, and save. The current default's switch stays on: to stop a template being the default, make another one the default.

Delete a template

In the template list, click the delete icon beside a template and confirm. A PDF already exported with it stays as it is. The default template can't be deleted, so make another template the default first.

What the PDF contains

  • The cover page, when the template has one.
  • The pages you ticked, in navigation order.
  • A clickable outline in your PDF reader's sidebar, built from each page's headings.
  • The content of your live site at the moment the export starts.
  • A page that cannot be rendered, for example because its MDX does not compile, is left out rather than failing the export.
A PDF cover page with a logo, the title Customer handover over an accent line, a description, and the export date
A cover page.
A printed page with a logo at the top, a DRAFT watermark, and footer text above Page 3 of 4
A page with a header image, watermark, footer text, and page numbers.

Things to know

  • One PDF is kept. A new export replaces the current PDF once it finishes, so download the PDF you need before you start the next one.
  • One export at a time. Wait for the running export to finish, or cancel it, before starting another.
  • Template changes apply to the next export. Editing or deleting a template does not change a PDF you already exported.
  • Up to 8,000 pages. Large sites can take several minutes to export.
  • A single page can be saved by readers from the docs site with Download as PDF.

Export with the API

To export from a script or a CI pipeline, use the REST API. It takes a template and a list of pages, as the dialog does. A PDF exported with the API downloads as documentation-export.pdf. See PDF Exports.