At home i have a networkscanner (Sharp mx2300n) that does not ocr the scanned pdfs. This docker image runs ocr and compress the files.
This container starts a ftp-server. Inotify watches ocr/ if new pdf-documents are uploaded and starts pdfsandwich. When pdfsandwich is done the two files will moved to /media/out.
docker run -i -p 21:21 -v /media/data/scan:/media/out