Index: /main/waeup.kofa/trunk/src/waeup/kofa/browser/pdf.py
===================================================================
--- /main/waeup.kofa/trunk/src/waeup/kofa/browser/pdf.py	(revision 10594)
+++ /main/waeup.kofa/trunk/src/waeup/kofa/browser/pdf.py	(revision 10595)
@@ -24,4 +24,6 @@
 from cStringIO import StringIO
 from datetime import datetime
+from reportlab.graphics.barcode.qr import QrCodeWidget
+from reportlab.graphics.shapes import Drawing
 from reportlab.lib import colors
 from reportlab.lib.units import cm, inch, mm
@@ -39,4 +41,5 @@
 from waeup.kofa.interfaces import IKofaUtils
 from waeup.kofa.interfaces import MessageFactory as _
+
 
 #: A reportlab paragraph style for 'normal' output.
@@ -850,2 +853,17 @@
     grok.name('landscape')
     pagesize = landscape(A4)
+
+def get_qrcode(text, width=60.0):
+    """Get a QR Code as Reportlab Flowable (actually a `Drawing`).
+
+    `width` gives box width in pixels (I think)
+    """
+    widget = QrCodeWidget(text)
+    bounds = widget.getBounds()
+    w_width = bounds[2] - bounds[0]
+    w_height = bounds[3] - bounds[1]
+    drawing = Drawing(
+        width, width,
+        transform=[width/w_width, 0, 0, width/w_height, 0, 0])
+    drawing.add(widget)
+    return drawing
