1
0
Fork 0
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:
Franzi 2022-11-15 13:43:17 +01:00
parent 280458f6aa
commit a272f21498
Signed by: kunsi
GPG key ID: 12E3D2136B818350
5 changed files with 51 additions and 16 deletions

View file

@ -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(