Skip to content

Since I don't have money to buy PDF2Anki, and the free version has too many limitations, I might as well write a stripped-down version myself.

Notifications You must be signed in to change notification settings

sleeping-psystudent/PDF2Anki

Repository files navigation

PDF2Anki

Upload a PDF file, use Gemini to extract questions from it and create an .apkg file, then download it for self-testing on how familiar you are with the content of the document.

Prerequisites

Installation

You can use either pip or conda to load the required packages from the requirements.txt file.

For pip

pip install -r pip_requirements.txt

For conda

conda install --yes --file conda_requirements.txt

Usage

  1. Run the script python AnkiProducer.py.
  2. Hold down Ctrl and click on the Local URL.
  3. You will see the following screen. Upload the PDF and ask some questions (it is okay to leave the question textbox blank). pic
  4. Enter the Gemini API key and the name of the deck in the textboxes on the right side, then wait for the questions to be generated.
  5. Once the execution is completed, you can download the .apkg file and upload it to your Anki.

Notes

  • Intending to incorporate additional question-generation modes.
  • Adding (aiming to achieve) image interpretation.

About

Since I don't have money to buy PDF2Anki, and the free version has too many limitations, I might as well write a stripped-down version myself.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages