Theme¶
PdfPug comes with a set of curated themes that work beautiful with all
PdfPug elements like Header
and others
defined in the API Documentation section.
Using these themes is as simple as passing it as an argument to the
PdfReport
class as shown below,
>>> from pdfpug import PdfReport
>>> from pdfpug.common import Theme
>>> report = PdfReport(theme=Theme.mood_swing)
>>> report.generate_pdf("pdfpug.pdf")
Warning
Themes are an experimental feature that is in a state of flux. Expect frequent API breakage!