Take screenshots and put them in a pdf file
This makes screenshotting en masse much easier. If you want to save your teacher's slides/ presentation for later you can simply use this to get everything you need in a compact (maybe even searchable) PDF format.
Install python
and all packages from requirements.txt
(pip install -r requirements.txt
in the directory with requirements.txt
).
Configure main.py
(namely the global variables TRY_TO_OCR
, IMAGE_PATH
, PEDOFILE_PATH
, KEYS
) and run.
While main.py
is running you can take a screenshot by pressing every key in KEYS
(i
and o
by default).
The screenshots will be saved in IMAGE_PATH
as IMAGE_PATH\{index}.png
while the PDF file will be saved as PEDOFILE_PATH
(make sure this path ends in .pdf
).
If you want to use ocr install this first and then set TRY_TO_OCR
to True
.
Run main
from to_pdf.py
with
output_path
as the location you want your pdf to beglob_path
as the location of your screenshot folder (same as yourIMAGE_PATH
inmain.py
)func
aslambda x: x.crop((?, ?, ?, ?))
with actual numbers instead of?
(this is in theto_pdf.py
file as an example)
Simply delete the image from the IMAGE_PATH
directory and run to_pdf.py
with
output_path
as the location you want your pdf to beglob_path
as the location of your screenshot folder (same as yourIMAGE_PATH
inmain.py
)
Either minimize the window or rename main.py
to main.pyw
but this will make it harder to close.