Skip to content

PocketFR/pdf_split_by_QR_code

 
 

Repository files navigation

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

About

Split PDF document into pages by QR code

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 89.0%
  • Dockerfile 5.9%
  • Makefile 5.1%