*`preparemoodle.sh` prepares for uploading PDFs to moodle via assign module as feedback file for each student
*`batch.sh` calls the three files above successively
Exemplary output of `batch.sh` can be downloaded [here](https://git.rwth-aachen.de/IENT/exam-scan/-/jobs/artifacts/master/download?job=test). Please note that we also provide a Dockerfile and a pre-built Docker image, see below.
Exemplary outputs can be downloaded:
*[moodle_feedbacks.zip](https://git.rwth-aachen.de/IENT/exam-scan/-/jobs/artifacts/master/raw/out/moodle_feedbacks.zip?job=test): The zip-Archive to be uploaded to Moodle containing the watermarked and encrypted PDFs for each student.
*[passwords.csv](https://git.rwth-aachen.de/IENT/exam-scan/-/jobs/artifacts/master/raw/out/passwords.csv?job=test): CSV file containing passwords for each PDF.
Please note that we also provide a Dockerfile and a pre-built Docker image, see below.
## Quick start
...
...
@@ -36,7 +40,7 @@ Exemplary output of `batch.sh` can be downloaded [here](https://git.rwth-aachen.
We tested everything only under Ubuntu 18.04 (native or Windows Subsystem for Linux). We also provide a Dockerfile (see Section below).
```
sudo apt-get install poppler-utils imagemagick-6.q16 img2pdf qpdf pwgen zip
sudo apt-get install poppler-utils imagemagick-6.q16 img2pdf parallel qpdf pwgen zip
```
Now everything should be set up.
...
...
@@ -47,7 +51,7 @@ We assume that the folder `./pdfs` holds the scans of the exams.
The filename of each PDF should start with the matriculation number of the student, e.g. `./pdfs/123456_Lastname.pdf`.
@@ -11,14 +11,15 @@ set -o pipefail # don't hide errors within pipes
#{{{ Input parameter handling
# Copied from https://stackoverflow.com/questions/192249/how-do-i-parse-command-line-arguments-in-bash
usage="$(basename"$0") [-h] [--in infolder] [-out outfolder] -- watermark exam scans with matriculation number in folder 'in' and puts them in folder 'out'.
usage="$(basename"$0") [-h] [--in infolder] [--out outfolder] [--cores numcores] [--quality jpegquality] -- watermark exam scans with matriculation number in folder 'in' and puts them in folder 'out'.
Attention: contents of folder 'out' will be overwritten in the following!