No description
- Python 100%
| .gitignore | ||
| add_qr_by_filename.py | ||
| add_qr_by_filename_example.png | ||
| H10003ASN.py | ||
| H10003ASN_example.png | ||
| README.md | ||
| rename_by_QR.py | ||
| requirements.txt | ||
ASN_Tools_Public
Installation
Step 1: clone repo
git clone https://git.lssrv.de/linussunderdiek/ASN_Tools_Public.git
cd ASN_Tools_Public
Step 2: create virtal env
Linux/MaxOS:
python3 -m venv .
Windows:
py -m venv .
Step 3 activate virtual env
Linux/MacOS:
source bin/activate (Windows different)
Windows:
.\Scripts\activate
Step 4 install requirements
pip install -r requirements.txt
Step 5 run individual scripts
see script description
ad_qr_by_filename.py
Adds QR-code and ASN to the top right of a pdf, see ad_qr_by_filename_example.png.
Important: The filepath must end with "/", otherwise the script does not work.
The filename must be the full ASN, eg. "ASN1234567.pdf"
Usage:
python3 ad_qr_by_filename.py /path/to/folder/
rename_by_QR.py
Renames all PDF-files of a folder to the detected ASN, eg "ASN1234567.pdf".
Usage:
python3 rename_by_QR.py /path/to/folder
H10003ASN.py
Creates printable PDFs for Herma H10003 Labels. Limitation: ASN must be > 1000000 and < 9999999. See H10003ASN_example.png.
H10003 labels are 80 pcs per sheet.
Usage:
python3 H10003ASN.py startASN stopASN
Example:
python3 H10003ASN.py 1000000 1000079