Skip to content

Script splitting up a PDF by QR code using the Zbar library. Along with a script to generate QR codes for testing

License

Notifications You must be signed in to change notification settings

shailpatels/QR-code

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

QR-code

Given a PDF, split into smaller PDFs by a QR code.
Written in python using the Zbar library

Things needed:

 sudo apt-get install libzbar0

 pip3 install pyzbar
 pip3 install Py2PDF
 pip3 install pdf2image

Zbar and pyzbar must both be installed since pyzbar is a python wrapper that requires the DLLs from zbar

(Optional for generating QR codes)

pip3 install qrcode	
pip3 install Pillow  	 

Usage

In a terminal:

python3 scanQr.py

The script will then take the PDF named test.pdf and dump the split PDFs into the output folder

Generating QR codes

For making PDF's with QR codes, a qr code can be generated from a string using the generateQr.py script
Run by:

python3 generateQr.py

Then enter a string after the promp and a qr code image will be made in the output folder

About

Script splitting up a PDF by QR code using the Zbar library. Along with a script to generate QR codes for testing

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages