Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ __pycache__
venv
.idea
/*.pdf
out/*.pdf
out/*.pdf
.DS_Store
6 changes: 5 additions & 1 deletion AveryLabels.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from collections.abc import Iterator
from reportlab.pdfgen import canvas
from reportlab.lib.pagesizes import A4
from reportlab.lib.pagesizes import A4, LETTER
from reportlab.lib.units import mm, cm

# Usage:
Expand Down Expand Up @@ -39,6 +39,10 @@
4778: (4, 12, (45.7 * mm, 21.2 * mm), (0.25 * cm, 0), (1.1 * cm, 2 * cm), A4),
# APLI 100984 40x 52.5x29.7mm
100984: (4, 10, (52.5 * mm, 29.7 * mm), (0, 0), (0, 0), A4),

# US Letter labels
# 1.75 x 0.5 return address labels US Letter
5195: (4, 15, (44.45 * mm, 16.75 *mm), (8 * mm, 0), (7 * mm, 14 * mm), LETTER),
}


Expand Down