Skip to main content

Export Obsidian vaults to PDF with plugin support. Runs locally or in CI.

Project description

obsidian-pdf-exporter

Export Obsidian vaults to PDF with plugin support. Runs locally or in CI.

Test, Lint and Build Build and publish to PyPI Package version

Features

  • Folder-tree → single PDF, preserving Obsidian's folder-note convention.
  • Wiki links and embedded images resolved against a one-pass vault index.
  • Obsidian callouts styled per type, YAML frontmatter parsed and stripped.
  • Built-in support for Folder Notes, Dataview, and Meta Bind; third-party plugin support is pip-installable. See PLUGINS.md.
  • Redline PDFs: tracked-changes diff between two git commits.
  • Pluggable PDF templates (CSS + running header/footer + paged-media @page rules). Two ship in the box: default and redline. See TEMPLATING.md.
  • Wide tables auto-rotated to landscape pages.

Install

macOS / Linux

curl -LsSf uvx.sh/obsidian-pdf-exporter/install.sh | sh && obsidian-pdf-exporter setup --yes

Windows

powershell -ExecutionPolicy ByPass -c "irm https://uvx.sh/obsidian-pdf-exporter/install.ps1 | iex; obsidian-pdf-exporter setup --yes"

The chained setup --yes installs the native runtime dependencies (Pango/HarfBuzz/Fontconfig and pandoc) through your OS package manager. For per-OS commands, pinned versions, and CI usage see INSTALLATION.md.

The shorter alias ope is identical to obsidian-pdf-exporter.

Quick start

# Standard export
ope export ./MyVault/SpaceA

# Custom title, version, output path
ope export ./MyVault/SpaceA \
  --title "Quality Manual" --version 3.1.0 \
  --output ./out/quality-manual.pdf

# Redline between two commits (must run inside a git repo)
ope redline ./MyVault/SpaceA \
  --from-commit v3.0.0 --to-commit HEAD

# Discovery
ope list-templates
ope list-plugins
ope --help

Full flag reference: COMMANDS.md.

Vault layout

The exporter walks a space folder (the ROOT argument) and turns every subfolder into a section. A folder note named after its folder is the section's body:

SpaceA/
├── SpaceA.md            ← root note (becomes the document's intro page)
├── images/              ← attachments folder name is irrelevant
│   └── logo.png
├── Chapter A/
│   ├── Chapter A.md     ← folder note for "Chapter A"
│   ├── img/             ← scoped attachments — picked over top-level on ties
│   │   └── logo.png
│   └── Section 1/
│       └── Section 1.md
└── Chapter B/
    └── Chapter B.md

Three roots are recognised:

  1. Space/Space.md exists → used as the root note.
  2. Space/Space/Space.md → the inner folder is the root, its siblings become children.
  3. Neither → an anonymous root, immediate child folders are sections.

Folders without markdown are pruned automatically. .git, .obsidian, .vscode and other dotfile folders are skipped.

Documentation

Topic Where
Installing the CLI and native deps; per-OS package commands INSTALLATION.md
Every command, flag, env var, and exit code COMMANDS.md
Obsidian-specific markdown features the exporter handles MARKDOWN.md
Built-in plugins, options, authoring third-party plugins PLUGINS.md
Custom PDF templates (no-Python recipes + full Python spec) TEMPLATING.md
Development setup, testing, PR guidelines CONTRIBUTING.md

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

obsidian_pdf_exporter-0.0.3.tar.gz (46.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

obsidian_pdf_exporter-0.0.3-py3-none-any.whl (62.6 kB view details)

Uploaded Python 3

File details

Details for the file obsidian_pdf_exporter-0.0.3.tar.gz.

File metadata

  • Download URL: obsidian_pdf_exporter-0.0.3.tar.gz
  • Upload date:
  • Size: 46.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.11 {"installer":{"name":"uv","version":"0.11.11","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for obsidian_pdf_exporter-0.0.3.tar.gz
Algorithm Hash digest
SHA256 ee8c8ba0e9b42d5e8258da1e75b1e577edfe6701fd173b800bef123ef64b799f
MD5 817b55d6c7f80a8e2190f4172d8a7b4c
BLAKE2b-256 947e667355e902e4789409c2690572f9b58e224c2bf6035ac2e2dc55f64c9561

See more details on using hashes here.

File details

Details for the file obsidian_pdf_exporter-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: obsidian_pdf_exporter-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 62.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.11 {"installer":{"name":"uv","version":"0.11.11","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for obsidian_pdf_exporter-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 e1846e1e81b2ce9d8e896a2e9bf5d6ef0f3ccf36be6a1d9291e329c757a369c2
MD5 6fe5d01077a829a9da994074f0609148
BLAKE2b-256 5c794f618fdcb489719f7ab42f764cf9f49034059789346cc6f00af3c0ff5b85

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page