38 8
Sign in to rate

Basic Printing Support

<10kB. Updated 2017-08-28. Supports both Anki 2.0.x and 2.1.x.


This add-on will add an option to the Tools menu in the main window. When you select it, it will place all the cards in the currently selected deck into a web page, and show that web page in your browser. You can then use your web browser's print option to print the cards on paper. The add-on should automatically open your browser with the generated web page, but if this does not work on your system, you can manually open the print.html file in your Documents/Anki/User 1 folder. Updated 26 Aug 2017: A new version for Anki 2.1. Should fix the page failing to open in the browser, and integrates the page break fixes posted in a comment. The Anki 2.0 version has not been updated at this time. Updated Sep 1 2014: Fix issues some users were having with the display of non-latin text.


As add-ons are programs downloaded from the internet, they are potentially malicious. You should only download add-ons you trust.

To download this add-on, please copy and paste the following code into the desktop program:


If you were linked to this page from the internet, please open Anki on your computer, go to the Tools menu and then Add-ons>Browse & Install to paste in the code.

Other Anki 2.0.x Add-Ons Other Anki 2.1.x Add-Ons Ask a Question


on 1542145351
Reasonably good hack (almost does what I want it to do) but... it's definitely _basic_ support. Problems include:

* It only prints the back side of the cards, meaning that (e.g.) cloze deletion cards do not properly function.
* They're in a fixed grid, meaning you can't (for example) print the cards on different-sized paper or have the individual cards have a different width. (Possible to partially fix: you could use Anki's new add-on configuration system to pick values for the `CONSTANTS`, allowing the user to change the cards-per-width.)
* Printing multiple times overwrites the previous printouts. (Possible to fix: use a temporary file or simply write to `"path/print"+repr(time.now())+".html"`, or perhaps prompt the user for where to save.)
* CSS is discarded. (Could be fixed using Shadow DOMs, but that's a really complicated feature.)
* Key combination Ctrl + P clashes with Preferences, rendering neither operable. (Possible to fix: choose something else, like Ctrl + Shift + P, or at least disable the key combination.)

But it does what I need it to (almost) and that's good enough for me until I have time to make an "Advanced Printing Support" addon.
on 1541787203
on 1539790172
lovely, allows me to drag my anki decks into onenote for extra mischief.

you complete me.
on 1538987930
doesn`t work
on 1536143148
To get the cards in order you created them, go to the addons window, click "open folder", open __init__.py, go to line 24 and in the triple """, replace 'sort by n.sfld' by 'sort by c.id'
on 1535918671
Works fine!
on 1527984000
it worked for me
on 1518652800
Can somebody please explain how to install this printing add-on on Mac computer?
on 1517788800
Perfect, much needed. I was able to replace OneNote with flashcards because of this.
on 1505433600
Not appearing on Safari Browser Anymore

The print option was working fine, but now when I try this add-on the lightbulb appears on the bottom left corner of Anki, but my browser never opens a new tab for printing my cards. Please help! It was working well before, and now it just doesn't work for me
on 1500249600
Updating Print Settings for cleaner printing

To stop printing from cutting off tables in mid-row and to make the columns a consistent width you can edit this plugin and replace the following lines.

tr { page-break-after:auto; }
tr { page-break-inside:avoid; page-break-after:auto }

cont = u"<td><center>%s</center></td>" % esc(c._getQA(True, False)['a'])
cont = u'<td width="{1}%"><center>{0}</center></td>'.format(esc(c._getQA(True, False)['a']), 100/CARDS_PER_ROW)
on 1498003200
HowTo get Pictures into MS Word

1) Open print.html in Internet Explorer
2) File->Save As "Webpage" under new name (Internet Explorer will create a html file and a folder containing the pictures
3) Open saved .html-file in Chrome
4) CTRL+A -> CTRL+C into Word.
( 5) In Word get rid of the tables and replace them with paragraph marks)
on 1497916800
Still works OK

This is very basic, but it works.

As other reviewers mention, it would be great if it auto-loaded the exported html page in a browser.
on 1491523200
Addon needs an update

Generating the print.html works for me but some points:

1. It opens to C:\Users\xxxxx\AppData\Roaming\Anki2\addons and not to the documents folder.
2. It does not open the print.html in the browser.
on 1491177600
Does spawn brower, does not generate output file for printing, pretty shoddy

on 1488412800
print option

money. works fast. can convert from webpage to PDF and print away. sweet!
on 1487116800
Doesn't output to webpage

When I select the deck and then use the add-on, it tells me it is working, but doesn't ever output to a webpage for viewing and printing.

I'm running windows 10 and Anki Version 2.0.41, thoughts? I would really like to see this work.
on 1484611200
great support

highly recommended

<a href="http://www.hello.com">hello</a>

on 1473292800
Please fix page breaks and dramatic variations in card height

Great add-on, but definitely needs some fixing
on 1473206400
Page breaks destroy the experience

Hi, thanks for this addon. I really like it and think it's great.

Unfortunately I have 2 big problems with it:
1. the flash cards I want to print are different in hight because of different amount of text on it. So they won't fit on a page without the half of one card continuing on the next... I didn't find a way to fix that in the Browser, yet.

2. to fix the problem from 1. I tried to open the print.html in excel and set the print margins for each row manually. But Latex Formulas weren't imported into excel. This makes it very impractial for my purposes :/ (running Mac OSX)

Any Ideas?
on 1456358400
this is how you can modify the script so that it will open the Browser Windows

for me it didn't open the browser window.
I managed to resolve it by editing one line in the script (Tools --> Add-ons --> Basic_Printing_Support --> Edit..

replace "openLink(upath(path))" with "QDesktopServices.openUrl(QUrl.fromEncoded(upath(path)))" and then restart anki and print. It works for me
on 1448496000
Thank you Thank you Thank you!

It automatically opened in Chrome on my Mac and then I copied the cards into Word :)
on 1446768000
Niektóre tale dobrze zamienia na nadające się do druku (głównie słówka). Jeżeli chodzi o rozbudowane talie, ze zdjęciami, kilkoma elementami, występują problemy. U mnie brakuje widoku przedniej strony fiszki w wydruku.
on 1439856000
brilliant app

works perfectly for me... when the output file first opened automatically in firefox i wasn't really satisfied as the characters were tiny and about 100000 cards were crammed into one page, but opening it in safari did the trick for me. also i tried word, but unfortunately no pictures were displayed there.
on 1432684800
has problem

add-on changes the order of words.
all the flashcards are not the same (Length and width).
on 1423440000

Works perfectly, a little slow but awesome, thanks!
on 1412380800
Great add on

Works as it says on the box. Thanks heaps.

Would love a way to select less than a whole deck, i.e. export to the print file just tag=something.

on 1409961600
Very useful

Very useful.

Thank you very much :)
on 1403827200
Change print order

Currently the cards are sorted in alphabetical order. Is it possible to add settings to print in order of date created? Or in the card order?
on 1401840000
WORKS, but does not open the browser automatically.

All of you who are saying this add-on does not work: it does. It just doesn't open the browser automatically.

Here's how to do it (Windows):

1. After printing the deck, head to file:///C:/Users/[Username]/Documents/Anki/[Anki username]
2. Here you'll find a file called "print.html". This is the file with your deck.
3. Open the file with your browser and you're good to go.

If your flash cards contain special letters and you end up with weird symbols within the deck, install a free software that allows you to convert the file into, for example, UTF-8. I used Notepad++ (http://notepad-plus-plus.org/). With Notepad++, the file can be converted through "Encoding -> Convert To...". After that just save the file and re-open it with your browser. Now the weird symbols should be gone.
on 1372809600
si la pagina web no abre automaticamente

debes ir a C:\Users\....\Documents\Anki\usuario 1, alli debe existir un archivo html con las tarjetas listas para imprimir
on 1372032000
Browser does not open

Unfortunately, the web page does not open after counting all cards in the deck. Is there a special thing I need to do to view them?