A tool that automatically creates "exam" sheets from a random set of exercises (from tutorial sheets). This is useful for practising random exercises for a real exam.
- Install all python modules listed in the
main.pyfile. - Install poppler and tesseract. Change the filepaths in
main.py:- Add the poppler filepath to make_pngs at
poppler_path= - Check that the tesseract.exe path is correct in
tesseract_cmd
- Add the poppler filepath to make_pngs at
- Add your exercise sheet pdfs into a folder
sheets_pdf.- Check the naming pattern. The code assumes
Assignment x.pdfas pattern. If yours is different, change it inmake_pngs()underpath=
- Check the naming pattern. The code assumes
- (optional) run
make_pngs()with all your sheets to create all possible exercise pngs (this will make futurecreate_exam()calls faster). - call
create_exam()with the number of problems and the title. Your finished pdf will be saved under exams/. Done:)
