• Python Image2PDF

    While running participants, we use multi-page logs (e.g. arrival time, researchers present, start time of each run of each task). After a session is over, we scan these to save on the server for easy reference later. However, with the most recent round of computer upgrades, the scanner functionality has decreased. Specifically, saving multiple images to a single PDF no longer works. Opening multiple image files is a pain, so I wanted to find a quick way to convert the combine the images into a PDF. My solution was to use the img2pdf package and some Python3 code. The script I came up with does 4 things: Read in all…