Skip to content

Instantly share code, notes, and snippets.

View MyIgel's full-sized avatar
🔥
Anzönden!

Igor Scheller MyIgel

🔥
Anzönden!
View GitHub Profile
@timrprobocom
timrprobocom / AveryLabels.py
Last active May 28, 2024 12:22
A class to manage printing on Avery labels with ReportLab
import os
from collections.abc import Iterator
from reportlab.pdfgen import canvas
from reportlab.lib.pagesizes import LETTER, landscape
from reportlab.lib.units import inch
from reportlab.pdfbase import pdfmetrics
from reportlab.pdfbase.ttfonts import TTFont
# Usage:
# label = AveryLabels.AveryLabel(5160)