def _process(self): static_item_ids, item_ids = self.list_generator.get_item_ids() pdf = RegistrantsListToBookPDF(self.event, self.regform, self.registrations, item_ids, static_item_ids) return send_file('RegistrantsBook.pdf', BytesIO(pdf.getPDFBin()), 'application/pdf')
def _process(self): pdf = RegistrantsListToBookPDF( self._conf, reglist=self.registrations, display=self.export_config['regform_items'], static_items=self.export_config['static_item_ids']) return send_file('RegistrantsBook.pdf', BytesIO(pdf.getPDFBin()), 'PDF')