Watch a folder for incoming pdf-files (from a scanner) and merge them
1.1K
TL;DR
A docker-container that watches for incoming files (incrond) and merges them together
(using qpdf) if needed.
The reason I created this project, is a scanner (HP OfficeJet) whose duplex unit sucks.
It can’t handle folded sheets well (paperjam in 8 out of 10 cases).
So I need to scan the odd and even pages separately and merge them together afterwards.
The docker-container is running on my NAS (QNAP TS-251+) and watches for new files in a mounted volume,
in which the scanner saves it files. The files are prefixed based on scan-profiles and merged based on
these prefixes.
For convenience I reverse the order of the even pages and rotate them by 180 degree during the
merge process. Doing that I can simply take the scanned pages from the output
tray and put them back to the input feeder without the need to rotate and reorder them.
> docker pull rverst/pdfmerge
> docker run -v /scan_folder:/input \
-v /scan_folder:/output \
rverst/pdfmerge:latest
Note that the script runs as UID 1000 and GID 1000 by default. These may be altered with the PUID and PGID environment variables.
Content type
Image
Digest
Size
8.5 MB
Last updated
over 6 years ago
docker pull rverst/pdfmerge