Skip to main content

obsidian-pdf-exporter

Export Obsidian vaults to PDF with plugin support, and make redline PDFs of the changes between two git commits. Runs locally or in CI.

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

Documentation: https://spenhouet.com/obsidian-pdf-exporter/

ope turns a folder of an Obsidian vault into one PDF. Every folder becomes a numbered section, and the Obsidian syntax in the notes is rendered: wiki links, embeds of notes, headings, blocks and images, callouts, highlights, tasks, footnotes, math, Mermaid and Bases. Community plugin syntax from Dataview, Meta Bind, Folder Notes, Block Link Plus, Excalidraw, draw.io and pandoc citations is rendered too. It also makes redline PDFs between two git commits, and templates control the look with CSS. It runs on the command line, without Obsidian, so it works in CI.

Each feature page of the docs shows the Markdown next to the rendered PDF.

Redline: see every change in the PDF

ope redline turns two git commits of a folder into a tracked-changes PDF: inserted text in green, removed text struck through in red, in the layout of the real document. It is made for reviews, approvals, audits and release notes of documents kept in git.

ope redline ./Policy --from-commit v1.0.0 --to-commit v1.1.0

The same policy before and after a change, and the redline PDF with inserted, removed and changed text

Tags, branches, commit hashes and HEAD~n work as versions, and the docs have GitHub Actions workflows that attach a redline to every pull request or release. See Redline.

Install

macOS / Linux

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

Windows

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

ope setup installs the native libraries WeasyPrint needs and pandoc. See Installation for every OS, uv, pip and CI.

Quick start

ope export ./MyVault/Handbook --title "Team handbook" --version 1.2.0
ope redline ./MyVault/Handbook --from-commit v1.1.0 --to-commit HEAD
ope export ./MyVault/Handbook --template ./my-template/
ope --help

Documentation

Topic Link
Install on every OS, quick start Getting started
Every command, flag, -O option, env var and exit code CLI reference
Markdown: tables, code, footnotes, math Markdown
Obsidian syntax: wiki links, embeds, callouts, Mermaid Obsidian
Dataview, Meta Bind, Excalidraw, draw.io, writing a plugin Plugins
Tracked-changes PDFs: usage, comparing versions, CI, what changes look like Redline
Templates, header and footer, CSS classes, recipes Templates and styling
Claude Code plugin, skill, llms.txt Use with AI agents
Development setup, architecture, tests Contributing

Use with AI agents

The repository is a Claude Code plugin marketplace with a skill for ope:

/plugin install obsidian-pdf-exporter --marketplace Spenhouet/obsidian-pdf-exporter

On older Claude Code versions, run /plugin marketplace add Spenhouet/obsidian-pdf-exporter and then /plugin install obsidian-pdf-exporter@obsidian-pdf-exporter. Other agents can read llms.txt.

License

MIT

Metadata

Release files for obsidian-pdf-exporter 0.8.2

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

Source distribution (sdist)

Source distribution for obsidian-pdf-exporter 0.8.2
File Size Uploaded
obsidian_pdf_exporter-0.8.2.tar.gz 131.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for obsidian-pdf-exporter 0.8.2
File Interpreter ABI Platform
obsidian_pdf_exporter-0.8.2-py3-none-any.whl Python 3 none any Details

Total release size: 308.4 kB

Release files / obsidian_pdf_exporter-0.8.2.tar.gz

Download URL obsidian_pdf_exporter-0.8.2.tar.gz
Size 131.5 kB
Tags Source
SHA-256 checksum
How to use checksums
5ced3e9c6b29b57a1486014e901b4d87b036d9888e5ff0b46b0288669e76c032
BLAKE2b-256 checksum
How to use checksums
5cacfc8ae8a32b0f987d6dd90331a4b3a236b9b402f85acfb455351ab8d060de
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.1 {"installer":{"name":"uv","version":"0.13.1","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}

Release files / obsidian_pdf_exporter-0.8.2-py3-none-any.whl

Download URL obsidian_pdf_exporter-0.8.2-py3-none-any.whl
Size 176.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2134c72d3eba7846c0515460fe2dfcdb042840006cb9596835c8950772ee9543
BLAKE2b-256 checksum
How to use checksums
417b0b4927ad2261531e01cfa818656c346a9406f22236484d5779ec7e9a8b27
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.1 {"installer":{"name":"uv","version":"0.13.1","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}

Release history Release notifications | RSS feed

0.14.1

2 release files

0.14.0

2 release files

0.13.0

2 release files

0.12.2

2 release files

0.12.1

2 release files

0.12.0

2 release files

0.11.2

2 release files

0.11.1

2 release files

0.11.0

2 release files

0.10.1

2 release files

0.10.0

2 release files

0.9.0

2 release files

This release

0.8.2 This release

2 release files

0.8.1

2 release files

0.8.0

2 release files

0.7.2

2 release files

0.7.1

2 release files

0.7.0

2 release files

0.6.1

2 release files

0.6.0

2 release files

0.5.1

2 release files

0.5.0

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.0

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

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