dwbutler103 downloadsAdds page numbers to PDF exports (e.g. 'Page 1 of 5').
Adds configurable page numbers to your PDF exports from Obsidian.
1.12.4 or newermain.js, manifest.json, and styles.css from the latest releaseyour-vault/.obsidian/plugins/pdf-page-numbers/cd obsidian-pdf-page-numbers
npm install
npm run build
Then copy main.js, manifest.json, and styles.css into your vault's plugin folder.
| Setting | Description | Default |
|---|---|---|
| Enable page numbers | Turn page numbers on or off | On |
| Position | Where on the page | Bottom Center |
| Format | Number format | Page X of Y |
| Custom format | Template with {{page}} and {{total}} |
Page {{page}} of {{total}} |
| Font size | Size in points | 10 |
| Font family | Font used for page numbers | sans-serif |
| Color | Hex color | #666666 |
| Skip first page | Hide number on page 1 | Off |
| Bottom margin | Pixels from bottom edge | 20 |
| Top margin | Pixels from top edge | 20 |
| Side margin | Pixels from left/right edge | 20 |
Obsidian 1.12.4 exports PDFs from a hidden popup window rather than the main note view. This plugin patches that popup's print flow so it can inject page-number header/footer options at export time.
The plugin also keeps a DOM-based fallback for Obsidian print views, but the primary path is the hidden export popup used by the built-in PDF dialog.
MIT