Home Artists Posts Import Register

Content

Important Compatibility Notice (2023):

This is a fairly old build of PDF Glossary Exporter and as such unfortunately suffers from a couple of compatibility issues with recent versions of Anki. I am working on new version of the add-on that will address these, but until then, the workarounds below will hopefully help bridge the gap:

  • Exporting directly to PDF will likely not work on recent Anki revisions. As a workaround please export your deck to HTML first, and then print it to PDF by opening the HTML file in your web browser of choice (e.g. Chrome) and then printing it.
  • On even more recent versions of Anki, the export options might not appear at all in the deck export menu. You can restore them by enabling the old deck export system. To do so, please head into Anki's main preferences by clicking on AnkiPreferences (or Tools → Preferences on Windows/Linux. Switch to the Editing tab, and then finally set the checkmark at Legacy import/export handling. After closing the Preferences window and restarting Anki, the deck export options should hopefully reappear..

My sincere apologies about the inconvenience!

The original post follows below:

----------

Heya everyone,

I hope you're having an amazing summer, with not too many daily reviews to distract you from its joys!

Today I'm thrilled to announce that one of the most-frequently requested add-ons, PDF Glossary Exporter, is now finally available for Anki 2.1!

For those of you who don't know: This is an add-on that's designed to take your virtual flashcard collection into the physical world by creating beautiful glossary-style PDF print-outs of your decks.

Porting PDF Glossary Exporter was an arduous task due to all the underlying dependencies it relies on, but I'm happy to say that this work is now finally done. All of you add-on aficionados out there: Go ahead and grab the release in the latest download post!

The primary focus in this release has been adding 2.1 compatibility, with a few useful new features sprinkled on top. However, I already have far more exciting changes planned for the upcoming release of the add-on, including a complete UI overhaul. Read more on that soon in the August dev recap!

Thanks again for your support everyone. As always: You're the ones who make all of this possible! The full changelog of the release follows below (please take heed of the "known issues" section!)

Best,

Glutanimate

-------------------------------------------

0.2.0 - 2019-08-19

Important: This is the first release of PDF Glossary Exporter that is exclusive to Anki 2.1. The 2.0 version will no longer receive any updates going forward, but will remain available to download from AnkiWeb for the time being. To benefit from the latest additions and changes, please update to Anki 2.1.

Important: When exporting decks to PDF, right now only .jpg images will display correctly. This is due to an elusive issue deep within the PDF exporting library that has turned out to be incredibly difficult to locate and fix. For maximum compatibility please stick to the HTML export functionality for now. All images should work there.

Added

  • Anki 2.1 support!
  • Exported cards are now sorted chronologically by note ID and card order
  • New one-column format for HTML exports
  • Ability to use a custom font for PDF exports by placing a `font.ttf` file in the add-on's `user_files` directory. This should allow users to add support for CJK and other non-latin character sets when needed.
  • HTML exports now come with a proper header across all pages

Fixed

  • Improve performance in export type selection dialog
  • Make sure to create user.css file

Changed

  • Refactored and simplified add-on structure
  • Updated third-party libraries to their latest version, which should hopefully result in a lot of bug fixes and improvements

Known Issues

Image export in PDFs seems to be broken for some formats at the moment. Even across extensive testing I have not been able to determine the cause for this, yet. It seems like the issue is located somewhere deep in the support libraries used for PDF generation.

Unfortunately this does not bode well for the current approach we use for PDF exports, and it could mean that we might have to switch to a completely new method in the future.

For the time being I would recommend that you stick to the HTML export options for any decks that depend on images.

Files

Comments

jorge ledesma

Running the latest version on the Mac Version ⁨2.1.48 (fb07bad3)⁩ and boom crash every time, I was so so pumped for this add-on. Any plans to update, let us know, thanks.

CH

Hey everyone, two quick-fixes: 1) my pdf rendering raised an error, that actually told me what to do: in the addon-folder pdf_glossary/_vendor/reportlab/platypus/frames.py lines 269 and 272 change the "is not" to "!=" and it works :) (do not ask my why, though, python should accept the "is not" syntax) 2) mathjax will at least work for html-rendering, if you add a line to the html-file: https://chemie-lernprogramme.de/daten/html/mathjax.html unfortunately, it is a bit more complicated for pdf, I did not check this one out. Last but not least a question: Is there a way to tweak the rendering to only show the answer side? In general: thank you for the addon, just became a patreon because of it