Index: /main/waeup.kofa/trunk/src/waeup/kofa/applicants/pdf.py
===================================================================
--- /main/waeup.kofa/trunk/src/waeup/kofa/applicants/pdf.py	(revision 10595)
+++ /main/waeup.kofa/trunk/src/waeup/kofa/applicants/pdf.py	(revision 10596)
@@ -27,5 +27,5 @@
 from waeup.kofa.browser import DEFAULT_PASSPORT_IMAGE_PATH
 from waeup.kofa.browser.interfaces import IPDFCreator
-from waeup.kofa.browser.pdf import SMALL_PARA_STYLE, ENTRY1_STYLE
+from waeup.kofa.browser.pdf import SMALL_PARA_STYLE, ENTRY1_STYLE, get_qrcode
 from waeup.kofa.interfaces import IExtFileStore, IPDF, IKofaUtils
 from waeup.kofa.interfaces import MessageFactory as _
@@ -131,5 +131,5 @@
         data.append(Spacer(1, 5))
 
-        # create two-column header table
+        # create three-column header table
         # append photograph to the left
         img_path = getattr(
@@ -139,12 +139,22 @@
         table_left = Table(data_left,style=SLIP_STYLE)
 
-        # append column-two fields to the right
+        # append base data table to the middle
         fields = [
             field for field in self.form_fields
                 if field.__name__ in self.column_two_fields]
-        table_right = creator.getWidgetsTable(
+        table_middle = creator.getWidgetsTable(
             fields, self.context, None, lang=portal_language,
-            separators=None, colWidths=[5*cm, 6*cm])
-        header_table = Table([[table_left, table_right],],style=SLIP_STYLE)
+            separators=None, colWidths=[5*cm, 4.5*cm])
+
+        # append QR code to the right
+        if view is not None:
+            url = view.url(self.context, 'application_slip.pdf')
+            data_right = [[get_qrcode(url, width=70.0)]]
+            table_right = Table(data_right,style=SLIP_STYLE)
+        else:
+            table_right = None
+
+        header_table = Table(
+            [[table_left, table_middle, table_right],],style=SLIP_STYLE)
         data.append(header_table)
 
