Skip to content

Latest commit

 

History

History
51 lines (26 loc) · 1.16 KB

README.md

File metadata and controls

51 lines (26 loc) · 1.16 KB

Split PDF document into pages by QR code

Small tool to split pdf document into pages by QR code

CircleCI codecov

all commands available in Makefile

Usage

Use this script as:

./main.py <source file path>

Example

./main.py sample.pdf

Tests

pytest -vs

Docker

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