Index: /main/waeup.sirp/trunk/src/waeup/sirp/applicants/browser.py
===================================================================
--- /main/waeup.sirp/trunk/src/waeup/sirp/applicants/browser.py	(revision 6356)
+++ /main/waeup.sirp/trunk/src/waeup/sirp/applicants/browser.py	(revision 6357)
@@ -31,4 +31,6 @@
 
 from hurry.workflow.interfaces import IWorkflowInfo, IWorkflowState
+
+from reportlab.pdfgen import canvas
 
 from waeup.sirp.browser import (
@@ -572,4 +574,29 @@
         return
 
+class PDFActionButton(ManageActionButton):
+    grok.context(IApplicant)
+    grok.view(DisplayApplicant)
+    grok.require('waeup.handleApplication')
+    icon = 'actionicon_pdf.png'
+    text = 'Download pdf slip'
+    target = 'application_slip.pdf'
+
+class ExportPDFPage(grok.View):
+    """Deliver a PDF slip of the context.
+    """
+    grok.context(IApplicant)
+    grok.name('application_slip.pdf')
+    grok.require('waeup.handleApplication')
+
+    # Render a demo pdf pagge
+    def render(self):
+        #exporter = IWAeUPXMLExporter(self.context)
+        #xml = exporter.export().read()
+        pdf = canvas.Canvas("application_slip.pdf")
+        pdf.drawString(100,750,"Welcome to Reportlab!")
+        self.response.setHeader(
+            'Content-Type', 'application/pdf')
+        return pdf.getpdfdata()
+
 class EditApplicantStudent(EditApplicantFull):
     """An applicant-centered edit view for applicant data.
