docker run -it --rm \
-v $(pwd)/files:/pdf
ghcr.io/toshy/docker-qpdf:latest --helpNote
Make sure to mount to the /pdf directory on the container.
Merge PDFs using wildcard character *.
docker run -it --rm -v $(pwd)/files:/pdf --entrypoint /bin/sh ghcr.io/toshy/docker-qpdf:latest -c 'qpdf --empty --pages *.pdf -- result.pdf'Note: Entrypoint is changed to
/bin/shand supplying command with-c, as wildcard character*is interpreted by shell.
Build docker image from docker-bake.hcl with the APPLICATION_VERSION argument the desired QPDF version.
docker buildx bake --set *.args.APPLICATION_VERSION=12.2.0The built image will be available with the default tag docker-qpdf:local.
This repository comes with a MIT license.