Export any Anki deck to a polished PDF or a standalone interactive HTML file — in seconds.
AnkiPdffer transforms your flashcards into beautiful, readable documents for offline study, sharing, or archiving.
- 🖨️ PDF Export — Print-ready output rendered via the built-in Chromium engine. Supports exact page sizes (A4, Letter, A3, A5) and customizable margins.
- 👁️ PDF Preview — A paginated HTML preview so you can see exactly how the PDF will naturally break across pages before exporting.
- 🌐 Legacy HTML — Generates a self-contained, single HTML file with embedded base64 images, a fully interactive image lightbox, and an optional grid layout mode.
- 🎨 Three Themes — Choose from Light ☀️, Dark 🌙, or the sleek Pro 🔵 theme.
- 🔤 Typography Control — Pick from 12 font families and adjust both text size and line height.
- 📏 Layout & Sizing — Select from Standard or Compact vertical layouts and quickly adjust card widths (Narrow, Medium, Wide, Full, Custom).
- 🗂️ Subdeck Tree Viewer — Intelligently structured dropdown menus let you easily select nested subdecks (e.g.,
Deck ↳ Subdeck ↳ Topic).
- Fields Mode: Granular control. Assign each underlying card field to a specific position (Front, Back, Extra), and customize its appearance (Size, Background, Color, Alignment, Bold/Italic).
- Cards Mode (Cloze/Occlusion): Wysiwyg. Renders using Anki's native card templates. Perfect for Image Occlusion (SVG masks are preserved!) and complex cloze deletions.
- Open Anki and navigate to Tools → Add-ons → Get Add-ons.
- Enter the add-on code:
XXXXXXXX(Code available after AnkiWeb publish). - Restart Anki to apply changes.
- Download the latest
AnkiPdffer.zipfrom the Releases page. - In Anki, go to Tools → Add-ons → Install from file….
- Select the downloaded
.zipfile. - Restart Anki.
Requirements: Anki ≥ 23.11. (Qt6 strongly recommended, though Qt5/PyQt5 fallback is supported). No external dependencies.
To get started, simply navigate to Tools → Export Deck to PDF… in the main Anki menu. Pro-tip: Press Shift+P from the main view to instantly export the current deck as Legacy HTML.
| Setting | Description |
|---|---|
| Theme | Select Light, Dark, or Pro visual themes. |
| Font & Size | Choose from 12 bundled fonts and configure pixel size. |
| Width | Restrict column width: Narrow (520px), Medium (680px), Wide, Full, or Custom. |
| Layout | Toggle between Standard spacing or Compact to save real estate. |
| Source | Choose "Fields" for custom assembly or "Cards" for native formatting. |
| Options | Toggle Deck Title, Card Numbers, and Zebra Striping. |
Control physical page properties. Define paper sizes (A4, A5, Letter, A3), page margins (in millimeters), card padding, and minimum inter-card gaps. Also allows stripping raw HTML inline styles or changing card border attributes (Rounded, Sharp, Double, None).
Map your Anki fields directly. Select whether a field belongs at the top (Front), bottom (Back), or as an appendix (Extra). Expand the ( ⋯ ) button to define exact background hues, alignment, and labels for specific fields.
All your preferences can be saved, loaded, or reset from the Settings tab. They are stored safely in settings.json. AnkiPdffer also supports English and Polish UI languages natively!
Exported HTML files aren't just static! Click any image to launch a full-screen, native lightbox.
| Action | Result |
|---|---|
| Scroll / Trackpad | Zoom in/out smoothly. |
| Click & Drag | Pan freely around zoomed images. |
| Double-Click | Toggle instantly between 100% resolution and fit-to-screen. |
| Escape / Click BG | Dismiss the viewer. |
- Image Occlusion Cards? Make sure to set Source to Cards (Cloze/Occlusion) to accurately preserve SVG occlusion masks.
- Mass Review? Enable the Grid Mode checkbox at the bottom left before hitting Legacy HTML to arrange cards in a responsive Pinterest-style grid.
- Paper Saving? Use Compact Layout combined with No border Card Style for the highest density exports possible.
| Todo | |
|---|---|
| Weird spacing issue | ❌ |
Distributed under the MIT License. Free to use, modify, and distribute.