code: def pdfFromPOST(self):
          
          html = self.request.form.get('html')
          style = self.request.form.get('style')
          reporthtml = "<html><head>%s</head><body><div id='report'>%s</body></html>" % (style, html)
          return self.printFromHTML(safe_unicode(reporthtml).encode('utf-8'))
docs: It returns the pdf for the sampling rounds printed