Skip to content

Instantly share code, notes, and snippets.



  • Hamburg, Germany
View GitHub Profile
lkrone /
Created Dec 16, 2016
Shows a way to generate a PDF (with Python and ReportLab) of a sheet of labels containing EAN-13 Barcodes and a short, descriptive text.
#!/usr/bin/env python3
from reportlab.lib.pagesizes import A4
from import Drawing, String
from import Ean13BarcodeWidget
from import renderPDF
from reportlab.pdfgen.canvas import Canvas
Adjust pagesize, number of labels, barcode size and