mirror of
https://github.com/Kunsi/pretalx-plugin-broadcast-tools
synced 2025-06-06 14:42:23 +00:00
add option to include additional custom content on pdf export
This commit is contained in:
parent
280458f6aa
commit
a272f21498
5 changed files with 51 additions and 16 deletions
|
@ -17,6 +17,8 @@ from reportlab.platypus import (
|
|||
TableStyle,
|
||||
)
|
||||
|
||||
from .utils.placeholders import placeholders
|
||||
|
||||
A4_WIDTH, A4_HEIGHT = A4
|
||||
PAGE_PADDING = 10 * mm
|
||||
|
||||
|
@ -169,6 +171,17 @@ class PDFInfoPage(Flowable):
|
|||
)
|
||||
)
|
||||
|
||||
if self.event.settings.broadcast_tools_pdf_additional_content:
|
||||
self._space()
|
||||
self._add(
|
||||
Paragraph(
|
||||
self.event.settings.broadcast_tools_pdf_additional_content.format(
|
||||
**placeholders(self.schedule, self.talk)
|
||||
),
|
||||
style=self.style["Meta"],
|
||||
)
|
||||
)
|
||||
|
||||
if self.talk.submission.answers and self._questions:
|
||||
self._space()
|
||||
self._add(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue