AnkiPdffer

AnkiWeb addon 1987190048

Exports Anki decks as print-ready PDFs or standalone offline HTML files, with layouts, filters, cloze and Image Occlusion support, and one PDF per subdeck.
AI-generated summary; may contain mistakes.

export

Open on AnkiWeb GitHub Find alternatives

AnkiWeb

Votes
14 (👍 14 · 👎 0)
Updated
2026-11-16
Anki versions
2.1.1~
License
Not found (this does not mean that the addon has no license)
Virus scan
No ClamAV match A match does not prove malware. No match does not prove that the code is safe.
Languages
Python, JavaScript, Ignore List, C, CSS, CoffeeScript, Prolog, YAML, MATLAB, Makefile, JSON
Description language
en

Maintenance

active

  • Last update or commit: 2026-11-16 (15 days before the snapshot).
  • Commits in the last year: 57.
  • Issues: 0 open, 1 closed.
  • Pull requests: 0 open, 16 merged.
  • Median first response: 363 hours (1 answered issues and pull requests).

Will it work on my Anki?

Version branches
Min AnkiMax AnkiUpdated
2.1.1+2026-11-16
History across monthly snapshots

Loading…

Similar addons

PDF/HTML Exporter

Exports the back sides of selected cards to a standalone HTML file, preserving styling and images, ready for printing, sharing, archiving, or saving as PDF.

export

3 votes 21% approval 👍 2 · 👎 1 ⭐ 0 Anki 25.09.2~ Updated 2025-12-16
4x6 Flashcard Printer

Prints selected cards or the current deck and subdecks as a print-ready PDF on 4x6 or 6x4 index cards, then opens it in the system viewer.

export

1 votes 21% approval 👍 1 · 👎 0 ⭐ 0 Anki 2.1.1~ Updated 2026-09-11
Papercards - export & print flashcards to paper

Exports selected decks' cards into a printable layout for printing or saving as PDF or HTML, with configurable paper format, cards per sheet, and output folder.

export

84 votes 48% approval 👍 49 · 👎 35 Anki 26.09.3~ Updated 2026-10-16
Print Selected Cards

Exports selected cards, decks, or tags to a printable HTML file showing both card sides, with media and LaTeX support, for printing or saving as PDF.

exportshortcutsfork-or-reupload

2 votes 9% approval 👍 1 · 👎 1 Anki 26.05~ Updated 2026-07-07

Description

Export Anki decks to clean PDFs or standalone interactive HTML files.

AnkiPdffer turns flashcards into readable documents for printing, offline study, sharing, and archiving.

Open source on GitHub (screenshots, full documentation, changelog):

github.com/Janolm3/ankipdffer

Buy Me a Coffee

New in 1.4.5

  • One PDF per subdeck — pick a deck or subdeck, switch on Content → Subdecks → Separate PDF for each, click Export PDF and pick a folder: every subdeck below it gets its own file, with your filter and options applied. Several files are rendered at once, with a PDF 3 / 12 loader, a Stop button and a choice to replace or keep existing files.
  • More in Tools → AnkiPdffer — export, preview and one PDF per subdeck for the current deck, the last export log, Settings.
  • Faster image viewer in Legacy HTML — opens at once, smooth wheel and pinch zoom, drag, double tap.
  • The loader no longer floats above other applications.

New in 1.4.4

  • Page preview — a to-scale sketch of the page next to the Page options, with labelled margins, padding, gaps and line height.
  • Portrait or landscape pages.
  • Tighter Legacy HTML grid — cards packed into columns without holes.
  • Exported files open in front of Anki.
  • Export info on/off — hide the version line in the bottom-right corner of PDF pages.
  • Option tabs line up with the tab bar; the filter builder's pop-up lists no longer hide entries and scrolling no longer changes them.

New in 1.4.3

  • Filter builder — quick filters in the search field and a rule editor with a live card count.
  • MathJax formulas are drawn as sharp vector graphics, inline with the text.
  • One box per card type for note types whose cards show different fields (e.g. Question 1 / Question 2 with a shared Context).
  • Cloze colour of your choice for revealed answers.

New in 1.4.2

  • Export to PDF button on the deck screen — right below Study Now, opens AnkiPdffer on that deck (can be hidden in Settings).
  • PDF engine setup on Windows — Settings → PDF engine → Set up… installs Python, Pango and WeasyPrint.
  • The export window opens faster and the Settings tab is quieter.

New in 1.4.1

  • Preview PDF is the real PDF — exactly what Export produces.
  • Smarter pagination — cards continue on the next page only where it clearly saves space, never in the middle of a field. Compact exports have far less empty space.
  • Clean links and uncropped images; Strip Anki formatting keeps line breaks.
  • PDF engine setup in Settings — checks and installs what WeasyPrint needs with one click.
  • The progress panel stays in front until the export is done.

New in 1.4.0

  • Worksheets — print all questions followed by an answer key, or each question on one page and its answer on the next.
  • Image Occlusion pages — one page with every mask hidden, the next with the masks revealed and numbered. Choose all masks at once or one card per mask.
  • Cloze modes — hide answers as [...] (or [hint]), reveal them, show the hidden version followed by the revealed one, or keep Anki's card-per-cloze.
  • Note type editor — the Fields tab opens on the type of the card you are studying; any note type can be edited, and each keeps its own settings.
  • Field presets — save how a note type's fields look and apply it to any other type.
  • Redesigned window — clean Mac-style look in light and dark mode, adapts to any window size, keyboard shortcuts.
  • Settings saved automatically, option presets, reset to defaults, and the same window is reused instead of opening new ones.
  • 10 interface languages — English, Polski, Español, Português, Deutsch, Français, Italiano, Русский, 中文, 日本語.
  • Filter, order and count — any Anki search (e.g. tag:leech is:due), deck / creation / shuffled order, live card count, page numbers.

Features

  • PDF export — print-ready PDFs with A4, A5, A3, Letter, custom margins, page numbers, and PDF preview.
  • Standalone HTML — single offline HTML file with embedded images and an interactive image viewer.
  • Themes — Light, Dark, and Pro.
  • Typography — 12 font families, adjustable text size, and line height.
  • Layout control — compact mode, custom card widths, spacing, padding, and borders.

Render Modes

Fields Mode

Best for simple, clean exports and worksheets.

Map each Anki field to Front, Back, or Extra and set its size, bold / italic / underline, label, colors, background, and alignment. Settings are remembered per note type.

Cards Mode

Best for complex card templates.

Renders cards using Anki's native templates and preserves custom CSS and layouts. Image Occlusion masks and cloze deletions are drawn statically, so they print correctly.

Usage

In Anki, open:

Tools → AnkiPdffer → Open export dialog…

Pick the deck, adjust the tabs (Content, Appearance, Page, Fields, Settings), then Preview PDF or Export PDF.

Or open a deck and click Export to PDF below Study Now.

Quick export of the current deck to Legacy HTML:

Shift + Alt + P

Shortcuts in the export window: Cmd/Ctrl+1–5 tabs, Cmd/Ctrl+F filter, Cmd/Ctrl+P preview, Cmd/Ctrl+Return export.

HTML Image Viewer

Click any image in the exported HTML to open it fullscreen.

  • Scroll to zoom
  • Drag to pan
  • Double-click to toggle 100%
  • Press Escape to close

Tips

  • For a cloze worksheet, set Cloze: Hide answers and Q / A: All questions, then answers.
  • For self-testing with Image Occlusion, use Q / A: Question page, then answer page.
  • For dense review sheets, use Layout: Compact, Card style: No border, and Grid layout (HTML).

Requirements

  • Anki 23.11+
  • PDF export uses the bundled WeasyPrint. On macOS it needs Python 3.14 and Pango — Settings → PDF engine → Set up… installs them with one click. On Windows the same button installs Python, Pango (MSYS2) and WeasyPrint. Without them AnkiPdffer falls back to Anki's built-in PDF renderer. HTML export has no extra requirements.

README

AnkiPdffer

Export Anki decks to polished, print-ready PDFs or a single offline HTML file.

AnkiPdffer turns flashcards into clean documents for printing, offline study, sharing and archiving — real page layout, formulas, cloze highlighting and Image Occlusion, from a native-looking window inside Anki.

AnkiPdffer export window, Content tab The same window in dark mode

Install: in Anki choose Tools → Add-ons → Get Add-ons… and enter 1987190048, or download AnkiPdffer-1.4.5.ankiaddon from the latest release and use Install from file…. Then open a deck and click Export to PDF, or use Tools → AnkiPdffer.


Key Features

Print-ready PDFs

An exported PDF page: cards with formulas, highlighted cloze answers and field labels

  • Real page layout (WeasyPrint): A4, A5, A3 or Letter in portrait or landscape, margins, card padding and gaps, page numbers. Cards break across pages only where it saves space, never inside a field.
  • Formulas: MathJax \(…\) and \[…\] are drawn as sharp vector graphics, inline with the text or centred for display math.
  • Cloze: answers highlighted in the theme colour or a colour of your choice, hidden as [...] for worksheets, or one card per cloze as in Anki.
  • Looks: light, dark and Pro themes, five card styles, compact or standard density, any system font.
  • One PDF per subdeck: Content → Subdecks → Separate PDF for each makes Export PDF write a file for every subdeck of the selected deck into a folder you choose.
  • Preview PDF renders exactly what Export PDF will save; the small export info in the corner (version, engine, mode) can be turned off.

See the Page While You Set It Up

Page tab: options beside a to-scale page sketch with labelled margins, padding, gaps and line height

The Page tab draws a to-scale sketch of a page next to its options — paper size and orientation, margins, padding, gaps, line height, image limit, page numbers and export info, each marked with a dimension line and its value. The option you are editing is highlighted on the sketch; point at a mark to find its option, click it to edit.

Filters Without Search Syntax

Filter builder: rows of property, condition and value with the matching card count

Click the filter icon in the search field for quick filters (card state, flag, the deck's tags, note type, added or reviewed recently, difficult cards), or Build filter… (⌘⇧F) for a rule editor in the style of Mail rules: property – condition – value, matching all or any rows. The matching card count and the Anki search it produces update as you type. Any Anki search still works in the field itself.

Fields Your Way

Fields tab: one row per field with section, size, style and label

Choose, per note type, which fields go to the front, back or extra section and how each looks: size, bold / italic / underline, colours, alignment, label. Field presets copy a look from one note type to another, and note types whose cards show different fields (e.g. Question 1 / Question 2 with a shared Context) get one box per card.

Worksheets, Cloze and Image Occlusion

  • Question / answer layouts: together on one card, all questions followed by an answer key, or a question page followed by its answer page.
  • Image Occlusion: one page with every mask covering the image, the next with the masks removed and numbered.
  • Cards mode renders cards with Anki's own templates and CSS, for complex note types.

Also

  • Export to PDF button on Anki's deck screen, right below Study Now.
  • Standalone HTML: one offline file with embedded images and a fullscreen image viewer.
  • One-click PDF engine setup on macOS and Windows (Settings → PDF engine); a built-in fallback renderer works everywhere.
  • Saves as you go, with option presets and a one-click reset.
  • 10 interface languages: English, Polski, Español, Português, Deutsch, Français, Italiano, Русский, 中文, 日本語.

What's New in 1.4.5

  • One PDF per subdeck: pick a deck or subdeck, switch on Content → Subdecks → Separate PDF for each, click Export PDF and choose a folder; every subdeck below it gets its own file (KOLOKWIUM - ZESTAW 1.pdf, …), with your filter and options applied. Several files are rendered at once, the loader shows PDF 3 / 12 with a Stop button, and existing files can be replaced or kept.
  • More in Tools → AnkiPdffer: export, preview and one-PDF-per-subdeck for the current deck, the last export log and Settings.
  • Faster image viewer in Legacy HTML: opens at once, smooth wheel and pinch zoom, drag, double tap, keyboard.
  • The loader stays with Anki instead of floating above other applications.

Earlier: 1.4.4 added the page preview, portrait or landscape pages, a tighter Legacy HTML grid and the export info switch; 1.4.3 added the filter builder, MathJax formulas, one box per card type and cloze colours; 1.4.2 the deck-screen button and Windows engine setup; 1.4.0 worksheets, Image Occlusion pages and the redesigned window. Full list in the CHANGELOG.


The Window

Pick the deck, subdeck and an optional filter at the top; the footer shows how many cards and notes will be exported. Options are grouped in five tabs:

Tab What it sets
Content Source (fields or rendered cards), question / answer layout, cloze, Image Occlusion, order, title and numbers, one PDF per subdeck
Appearance Theme, font and size, card width, layout density, card style, zebra / high-contrast / grid options
Page Paper size and orientation, margins, padding, spacing, line height, image height, page numbers, export info — next to a to-scale preview
Fields Which field goes where and how it looks, per note type (Fields source only)
Settings Option presets, language, PDF engine setup, debug log, reset

Everything is saved as you go — there is no Save button.


Render Modes

Fields Mode

Best for simple, uniform study sheets.

Map Anki fields to:

  • Front
  • Back
  • Extra

Customize each field with labels, size, bold / italic / underline, colors, background, and alignment (⋯ opens the extra options). Untick a field to leave it out.

The Fields tab edits one note type at a time. It opens on the type of the card you are studying (or the deck's most used type), and the Note type pop-up switches to any other type in your collection. Settings are stored per note type; Reset restores a type's defaults.

Presets (next to the note type) save how a note type's fields look and apply it to any other type — fields are matched by name, then by position.

In Fields mode, a note is exported once even if it generates several cards. Cloze fields follow the Cloze option and Image Occlusion notes are drawn from their mask data.

Cards Mode

Best for complex templates and for printing the front and back of each card as Anki renders them.

Cards Mode renders cards using Anki's native templates, preserving custom CSS and advanced card layouts. Sounds and Anki's interactive Image Occlusion canvas are replaced by static output.


Question / Answer Layout

Option Result
Together on one card Question and answer in the same block (default)
All questions, then answers Every question first, then an answer key
Question page, then answer page Each card's question on one page and its answer on the next

Cloze

Option Result
Reveal (highlighted) Answers shown and highlighted
Hide answers [...] Answers replaced by [...] (or the hint, [hint])
Hidden, then revealed The hidden version followed by the revealed one
Like Anki One card per cloze number, as in Anki

Combine Hide answers with All questions, then answers to get a printable cloze worksheet with an answer key.

Image Occlusion

Anki's Image Occlusion notes (rectangles, ellipses, polygons) are drawn directly by the exporter:

Image Occlusion page with all masks hidden The same image with the masks revealed and numbered

  • All masks at once: one entry per note — the image with every mask on top, then (with a question / answer layout) the same image with the masks removed and numbered outlines.
  • One card per mask: one entry per mask, as Anki schedules them.

Export Options

PDF

Create polished, print-ready documents with:

  • Standard or custom page sizes
  • Adjustable margins
  • Card spacing and padding
  • Compact layout options
  • Optional page numbers (3 / 12)
  • Optional export info in the bottom-right corner (version, engine, mode, note types)
  • Live PDF preview before export

[!TIP] Use Preview PDF before exporting to check natural page breaks and avoid awkward card splits.

Standalone HTML

Generate a single portable HTML file with:

  • Embedded images
  • Offline access
  • Interactive image viewing
  • Optional grid layout that packs cards into columns without holes
  • Easy sharing across devices

Settings and Presets

  • Option presets (Settings tab): store all current options and field settings under a name, apply or delete them later.
  • Field presets (Fields tab): store only how one note type's fields look, and reuse it on other note types.
  • Reset everything to defaults restores the original options and field settings (your language and presets are kept).
  • Language switches the interface immediately.

Settings live in settings.json inside the add-on folder.


Usage

In Anki, open:

Tools → AnkiPdffer → Open export dialog…

Then choose your deck (and optional filter), adjust the tabs, and export.

Filtering

Type any Anki search in the filter field, or click its filter icon:

  • Quick filters add one condition: card state, flag, the deck's tags, note type, added or reviewed recently, difficult cards.
  • Build filter… (⌘⇧F) opens a rule editor. Each row is property – condition – value (e.g. Reviewed – in the last – 7 days – answered Again); match all or any rows. The matching card count and the Anki search it produces are shown as you edit.

Or open a deck and click Export to PDF below Study Now — the window opens on that deck (Settings → Deck screen hides the button).

Quick export of the current deck to Legacy HTML:

Shift + Alt + P

Keyboard Shortcuts

In the export window:

Shortcut Action
⌘1 – ⌘5 Switch tabs
⌘F Filter cards
⌘P Preview PDF
⌘↩ Export PDF
⌘W Close

(Ctrl instead of ⌘ on Windows / Linux.)


Image Viewer

Click any image in the exported HTML to open it fullscreen.

  • Scroll to zoom
  • Drag to pan
  • Double-click to toggle 100%
  • Press Escape to close

Tips

[!TIP] For dense review sheets, enable Appearance → Grid layout (HTML) and use Layout: Compact with Card style: No border.

[!TIP] For paper-saving exports, reduce padding and spacing on the Page tab and switch to a compact layout.

[!TIP] For self-testing, combine Cloze: Hide answers with Q / A: Question page, then answer page.


Requirements

  • Anki 23.11+
  • PDF export uses the bundled WeasyPrint in an isolated Python process. On macOS this needs Python 3.14 and Pango — Settings → PDF engine → Set up… checks them and installs what is missing with one click (or run brew install python@3.14 pango). On Windows the same button installs Python, Pango (MSYS2) and WeasyPrint into the add-on's user_files folder (winget is used when available). If they are not found, AnkiPdffer falls back to Qt WebEngine's PDF renderer (works everywhere, with simpler pagination). HTML export has no extra requirements.

Development

dev/dev.sh check         # headless regression checks (real add-on code, temporary collection)
dev/dev.sh preview       # dialog screenshots + sample PDFs -> dev/out/index.html
dev/dev.sh sandbox       # throw-away Anki profile with a sample deck and this add-on
dev/dev.sh sandbox-stop  # quit only the sandbox Anki
dev/dev.sh sync          # copy the working tree into your Anki add-ons folder
./release.sh 1.4.5 --build-only   # dist/AnkiPdffer-1.4.5.ankiaddon (+ .zip), nothing published

New interface languages go into translations.py; missing strings fall back to English. The AnkiWeb description lives in docs/ANKIWEB.md.


Source & License

AnkiPdffer is open source under the MIT License.

github.com/Janolm3/ankipdffer · AnkiWeb