Small tool to split pdf document into pages by QR code
all commands available in Makefile
Use this script as:
./main.py <source file path>
Example
./main.py sample.pdf
pytest -vs
build:
docker build --rm -f "Dockerfile" -t pdf_qr_code_split:latest .
run tests:
docker run -it --rm pdf_qr_code_split
run sample:
> the tool will try find folder inside the container, not in your file system
docker run -it --rm -v $(pwd):/ext --entrypoint "python" pdf_qr_code_split main.py ./sample.pdf
run as script:
> you must map correct folders and generate right qrcodes
docker run -it --rm \
-v $$(pwd)/Dropbox:/Dropbox \
-v $$(pwd)/sources:/sources \
--entrypoint "python" pdf_qr_code_split main.py /sources/sample.pdf