From bbe03c74eca87b3fa2c044123d33a6a03c64cd0c Mon Sep 17 00:00:00 2001 From: Pravesh Soni Date: Thu, 19 Jun 2025 14:50:34 -0500 Subject: [PATCH] Added Avery 5195 - US Letter --- .gitignore | 3 ++- AveryLabels.py | 6 +++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index b544cd4..b6b154b 100644 --- a/.gitignore +++ b/.gitignore @@ -2,4 +2,5 @@ __pycache__ venv .idea /*.pdf -out/*.pdf \ No newline at end of file +out/*.pdf +.DS_Store \ No newline at end of file diff --git a/AveryLabels.py b/AveryLabels.py index 27c2b3d..61bcaa0 100644 --- a/AveryLabels.py +++ b/AveryLabels.py @@ -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: @@ -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), }