Skip to content

devnio/Flashcard-Viewer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flashcard-Viewer

A flashcard viewer that takes as input a pdf file.

Screen

I wrote this using the python tkinter library for the first time. Improvised in an afternoon in order to visualize my iPad notes as flashcards. I made this work using this pdf template. I tested it on macOs Catalina and on Windows 10 (see dependencies below).

Idea

  • Finds all the pdfs in the main directory (a bit messy, need change)
  • Can load one pdf in the dropdown menu
  • Creates images for each page of the pdf and divides the image in 2 (done only once)
    • The left half of the page is the question
    • The right half is the answer
  • (conversion is pretty slow, so it might take some minutes if there are a lot of flashcards)
  • Can randomize the order of the cards and visualize the back and the front of each card.

Dependencies

  • tkinter (https://tkdocs.com/tutorial/install.html)
  • PyPDF2 (pip install PyPDF2)
  • PIL (pip install Pillow)
  • wand (pip install Wand)
  • numpy (python -m pip install --user numpy scipy matplotlib ipython jupyter pandas sympy nose)

Errors

An error I had on Windows 10 after installing all libraries above.

TODO

  • fix all the small details specified above
  • find better way to convert pdf pages to images
  • have a parameter for setting the cut of the pdf (e.g instead of exact middle one can have [0,300] is question and [300,1000])
  • allow horizontal cuts
    • in case there are multiple flashcards on a page (e.g. 4 flashcards on an A4 page)

About

A flashcard viewer that takes as input a pdf file.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages