Export any Anki deck to a polished PDF or a standalone interactive HTML file — in seconds.
https://github.com/Janolm3/AnkiPdffer
Features Export Formats PDF Export: Print-ready output via the built-in Chromium engine, with correct page sizes (A4, Letter, A3, A5) and custom margins. PDF Preview: Paginated HTML preview showing exactly how the PDF will look before saving. Legacy HTML: Self-contained, single HTML file with embedded images, interactive image lightbox, and an optional responsive card grid layout. Smart Rendering Fields Source: Per-field configuration. Assign Front/Back/Extra sections, sizes (S/M/L/XL), bold, labels, background/text colors, and alignments. Cards Source: Uses Anki’s native rendered card templates. Perfect for Cloze deletions and Image Occlusion (SVG masks are preserved). Customization & Design Themes: Light ☀️, Dark 🌙, Pro 🔵 Typography: 12 font families with adjustable sizes and line heights. Layout: Standard or Compact spacing with width presets (Narrow, Medium, Wide, Full, Custom). Styling Options: Zebra striping, card numbering, deck title display, and custom card borders/shadows. Quality of Life Export specific subdecks or the entire deck. Save, load, or reset settings via a persistent JSON file. Bilingual UI: English and Polish. Debug mode for troubleshooting. Installation From AnkiWeb (Recommended) Open Anki and navigate to Tools > Add-ons > Get Add-ons. Enter the add-on code: XXXXXXXX (replace with AnkiWeb ID). Restart Anki. Manual Install
Download the latest AnkiPdffer.zip from the Github https://github.com/Janolm3/AnkiPdffer/releases/latest
In Anki, go to Tools > Add-ons > Install from file…
Select the downloaded .zip file.
Restart Anki.
Requirements: Anki ≥ 23.11 (Qt6 recommended; Qt5/PyQt5 supported). No external dependencies.
Usage
Quick Start: Press Shift+P to instantly export the current deck as Legacy HTML, or open the full menu via Tools > Export Deck to PDF…
Configuration Tabs Basic Tab Theme, Font & Size: Core styling options (12 fonts, 3 themes). Width & Layout: Card column width and spacing (Standard/Compact). Source: Switch between Fields (custom fields) or Cards (native Anki render). Toggles: Enable Title, Card Numbers, or Zebra striping. Advanced Tab Page Setup: Page size (A4/Letter/A3/A5) and margins (mm). Card Styling: Inner padding, gap between cards, and border styles. Content Tweaks: Line height, max image height, and inline style stripping. Fields Tab (Fields Mode) Section Mapping: Assign fields to Front (top), Back (bottom), or Extra. Formatting: Granular control over size, weight, colors, and alignment per field. Settings Tab Data Management: Save, load, or reset configurations to settings.json. App Preferences: UI Language (English/Polski) and Debug logging. Export Controls (Bottom Bar) Grid Checkbox: Formats the Legacy HTML export into a responsive multi-column grid. Legacy HTML: Generates the self-contained .html file. Preview PDF: Opens a paginated preview of the final PDF layout. Export PDF: Saves the deck as a print-ready .pdf file. Image Viewer (HTML Export)
Clicking any image in the exported HTML file opens a fullscreen, interactive lightbox:
Scroll wheel / Trackpad: Zoom in and out smoothly. Click & Drag: Pan around the zoomed image. Double-click: Toggle between fit-to-screen and 100% actual size. Esc / X button / Background click: Close the viewer. Pro Tips Image Occlusion: Always switch the Source to Cards (Cloze/Occlusion) to ensure SVG masks are rendered correctly. Bird’s-eye View: Use the Grid mode checkbox before exporting HTML for a quick visual overview of large decks. Maximum Density: For the most compact print layout, combine the Compact layout setting with the No border card style. Fast Export: Use the Shift+P shortcut from the main Anki window to bypass the dialog and export the focused deck immediately. To Do Better solution for Image Occlusion License
MIT — free to use, modify, and distribute.