Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

MkDocs Exporter


A highly configurable plugin for MkDocs that exports your pages as PDF documents.
Additionally, it can combine your entire documentation into a single PDF file.

Features

Prerequisites

  • Python >= 3.11
  • MkDocs >= 1.6, < 2 (or ProperDocs)

MkDocs 2.0 doesn't support plugins and Zensical ignores MkDocs plugins: a standalone command, able to export any built website, is planned.

Installation

The plugin is hosted on PyPI and can be installed via pip (or your favourite package manager), along with the browser it uses:

pip install "mkdocs-exporter>=7.0.0rc1"
playwright install --with-deps --only-shell chromium

Version 7 is a release candidate: until 7.0.0 is released, pip install mkdocs-exporter (without a version) installs 6.2.0.

Upgrading from v6? Read the migration guide.

Usage

The following configuration (adapted from the mkdocs.yml file used by this documentation) covers the main features of this plugin:

plugins:
  - exporter:
      formats:
        pdf:
          enabled: !ENV [MKDOCS_EXPORTER_PDF, true]
          concurrency: 8
          stylesheets:
            - resources/stylesheets/pdf.css
          covers:
            front: resources/templates/covers/front.html.j2
            back: resources/templates/covers/back.html.j2
          footer:
            right: "Page {page} of {pages}"
          books:
            - output: documentation.pdf
              covers: front
              toc:
                enabled: true

Check out the examples: documents generated from a small website (with cover pages, tables of contents, headers and footers...), with their configuration (examples/).

Roadmap

  • Combine all pages into a single PDF document (✅ released in v6.0.0)
  • Bookmarks, table of contents and links in combined documents (✅ released in v7.0.0)
  • A standalone command exporting any built website (Zensical, MkDocs 2.0...)
  • Create a GitHub action that includes all dependencies to build the documentation and generate PDF documents

Feel free to request additional features by submitting an issue or contributing through a pull request.

Contributing

We welcome contributions from the community to enhance MkDocs Exporter.
Whether you want to report a bug, suggest a feature, improve the documentation, or contribute code, your help is appreciated! See AGENTS.md for how the project is organized, built and tested.

License

This project is licensed under the MIT License (MIT), which you can read here.

Metadata

Release files for mkdocs-exporter 7.0.0rc1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mkdocs-exporter 7.0.0rc1
File Size Uploaded Provenance Actions
mkdocs_exporter-7.0.0rc1.tar.gz 62.9 kB With provenance Details for mkdocs_exporter-7.0.0rc1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for mkdocs-exporter 7.0.0rc1
File Interpreter ABI Platform Actions
mkdocs_exporter-7.0.0rc1-py3-none-any.whl Python 3 none any Details for mkdocs_exporter-7.0.0rc1-py3-none-any.whl

Total release size: 146.6 kB

Release files / mkdocs_exporter-7.0.0rc1.tar.gz

Download URL mkdocs_exporter-7.0.0rc1.tar.gz
Size 62.9 kB
Tags Source
SHA-256 checksum
How to use checksums
a5a89155342694c49201f0a1c50afc70428f98e498aa1f3dd753372118cf9cb0
BLAKE2b-256 checksum
How to use checksums
728eaa80dacda372ed0c86ccf2ef40c140f6d3bb39b2b92370fc51958c886e2e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 16, 2026.

Transparency log

Release files / mkdocs_exporter-7.0.0rc1-py3-none-any.whl

Download URL mkdocs_exporter-7.0.0rc1-py3-none-any.whl
Size 83.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
91620a54813f95092849f3575d9ef36023d9ad1ee7a519c37ec7a7f943a270b5
BLAKE2b-256 checksum
How to use checksums
f31d8bd2c9080afe7a0f0795ae09b774702dbf4e8ce2cb1b04ff0cbb80992f6d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 16, 2026.

Transparency log

Security for mkdocs-exporter 7.0.0rc1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for mkdocs_exporter-7.0.0rc1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 16, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page