{"id":50374838,"url":"https://github.com/shrekbytes/advanced-pdf-export","last_synced_at":"2026-05-30T09:01:15.694Z","repository":{"id":361207760,"uuid":"1253521026","full_name":"ShrekBytes/advanced-pdf-export","owner":"ShrekBytes","description":"export Obsidian notes as pdf with full control over layout, page size, margins, fonts, and manual page breaks","archived":false,"fork":false,"pushed_at":"2026-05-29T16:40:27.000Z","size":2092,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-29T17:12:36.495Z","etag":null,"topics":["md-to-pdf","obisidian","obsidian-plugin","pdf-export"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ShrekBytes.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-29T14:49:16.000Z","updated_at":"2026-05-29T16:40:08.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/ShrekBytes/advanced-pdf-export","commit_stats":null,"previous_names":["shrekbytes/advanced-pdf-export"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/ShrekBytes/advanced-pdf-export","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShrekBytes%2Fadvanced-pdf-export","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShrekBytes%2Fadvanced-pdf-export/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShrekBytes%2Fadvanced-pdf-export/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShrekBytes%2Fadvanced-pdf-export/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ShrekBytes","download_url":"https://codeload.github.com/ShrekBytes/advanced-pdf-export/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShrekBytes%2Fadvanced-pdf-export/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33686018,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-30T02:00:06.278Z","response_time":92,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["md-to-pdf","obisidian","obsidian-plugin","pdf-export"],"created_at":"2026-05-30T09:00:48.546Z","updated_at":"2026-05-30T09:01:15.684Z","avatar_url":"https://github.com/ShrekBytes.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Advanced PDF Export — Obsidian Plugin\n\nExport Obsidian notes as pixel-perfect PDFs with six style presets, manual page breaks, full layout control, and a live preview — all from the plugin panel.\n\n\u003e **Desktop only** — requires the Obsidian desktop app (uses Electron's print pipeline).\n\n![Main panel with live preview](screenshots/preview.png)\n\n\n## Features\n\n- **Manual preview rendering** — click **⟳ Render PDF** button or press `Ctrl+Enter` / `Cmd+Enter` to update the preview\n- **Copy content to editor** — click **copy from note** button to load the current note into the editor (changes are local, non-destructive)\n- **Style presets** — six built-in presets (Default, Minimal, Academic, Colorful, Modern, Newspaper), each with a Reset button\n- **Manual page breaks** — type `///` on its own line to force a page break\n- **Auto page breaks** — optional: insert page break before every `#` (H1) or `##` (H2) heading\n- **Page size \u0026 orientation** — A4, A3, A5, Letter, Legal × Portrait / Landscape\n- **Full margin control** — top, bottom, left, right (mm)\n- **Typography** — font family, size, line height, paragraph spacing, heading scale\n- **Colors** — accent, body text, headings, blockquote border, table header background, code background\n- **Heading styles** — per-heading bottom border toggles, center H1\n- **Tables** — optional striped rows\n- **Header \u0026 footer** — custom text, page numbers (X / Y), position control\n- **Zoom slider** — scale preview 35%–100% without re-paginating\n- **Pixel-perfect export** — generates PDF via Electron's `printToPDF`; exported PDF matches preview exactly\n\n\n## Screenshots\n\n### Page Breaks\nType `///` on its own line to insert a hard page break\n\n![Page break syntax in action](screenshots/usage.png)\n\n### Style Presets\nPresets configurations can be changed from settings\n\n![Style preset dropdown](screenshots/style1.png)\n\n![Academic preset](screenshots/style2.png)\n\n![Academic preset — alternate view](screenshots/style3.png)\n\nand more...\n\n### Settings Panel\n\n![Page \u0026 Preset settings](screenshots/settings1.png)\n\n![Typography \u0026 Colors settings](screenshots/settings2.png)\n\n![Heading Style, Tables \u0026 Header/Footer settings](screenshots/settings3.png)\n\n\n## Installation\n\n### Manual (GitHub Releases)\n1. Go to the [Releases](https://github.com/ShrekBytes/advanced-pdf-export/releases) page.\n2. Download `main.js`, `manifest.json`, and `styles.css` from the latest release.\n3. Place them in your vault at `.obsidian/plugins/advanced-pdf-export/`.\n4. Reload Obsidian and enable the plugin under **Settings → Community Plugins**.\n\n\n## Usage\n\n**Open the panel** — click the `file-output` icon in the left ribbon, or `Ctrl/Cmd + P` → *Open Advanced PDF Export panel*. The panel opens in the right sidebar.\n\n**Load a note** — click on a note then click on **copy from note** button to load the active note into the editor. Edits are local to this panel; they don't sync back to your vault (by design, for layout-only adjustments).\n\n**Edit markdown** — type or paste markdown in the editor.\n\n**Insert Pagebreak** -  Use `///` on its own line for a page break(new page).\n\n**Export** — click **⬇ Export PDF** in the top bar to open a native save dialog and generate the PDF.\n\n**Open settings** — click the ⚙ icon in the top bar, or go to **Settings → Advanced PDF Export**.\n\n\n## Settings Reference\n\nGo to **Settings → Advanced PDF Export** to configure defaults. All settings reflect immediately in the live preview.\n\n### Style Preset\n| Setting | Description |\n|---|---|\n| Preset | Style theme: Default, Minimal, Academic, Colorful, Modern, Newspaper |\n| Reset Preset | Restores all typographic and color values for the current preset to its defaults |\n\n### Page\n| Setting | Description |\n|---|---|\n| Page size | A4, A3, A5, Letter, Legal |\n| Orientation | Portrait or Landscape |\n| Margins (Top / Bottom / Left / Right) | In mm |\n\n### Typography\n| Setting | Options |\n|---|---|\n| Font family | Georgia, Times New Roman, Palatino, Arial, Helvetica, Trebuchet, Courier New |\n| Font size | 10 – 16 px |\n| Line height | Tight (1.4) → Double (2.0) |\n| Paragraph spacing | None → Wide (1em) |\n| Heading scale | 0.8× → 1.2× multiplier on all heading sizes |\n\n### Colors\nAccent · Body text · Headings · Blockquote border · Table header background · Code background\n\n### Heading Style\n| Setting | Description |\n|---|---|\n| H1 bottom border | Draws a line under every H1 |\n| H2 bottom border | Draws a subtle line under every H2 |\n| Center H1 | Centers all H1 headings |\n\n### Tables\n| Setting | Description |\n|---|---|\n| Striped rows | Alternating row background on even rows |\n\n### Header \u0026 Footer\n| Setting | Description |\n|---|---|\n| Show header | Toggle the header bar on or off |\n| Header text | Custom text shown top-right on every page |\n| Show footer | Toggle the footer bar on or off |\n| Footer text | Custom text shown in the footer |\n| Show page numbers | Toggle *Page X / Y* display |\n| Page number position | Left, Center, or Right |\n\n### Behaviour\n| Setting | Description |\n|---|---|\n| Auto page break before H1 | Inserts `///` before every `#` heading |\n| Auto page break before H2 | Inserts `///` before every `##` heading |\n\n\n## License\n\nOpen source under [GPL-3.0 License](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshrekbytes%2Fadvanced-pdf-export","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshrekbytes%2Fadvanced-pdf-export","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshrekbytes%2Fadvanced-pdf-export/lists"}