docs: def pdf(self, text=TEXT):
          """ Generate a PDF file from the report data. """
          self.logger.debug("Generating the PDF report...")
          html = HTML(string=self.html())
          css_file = self.css or join(dirname(abspath(__file__)),
                                      "{}.css".format(self.theme))
          css = [css_file, CSS(string=PAGE_CSS % self.__dict__)]
          html.write_pdf("{}.pdf".format(self.filename), stylesheets=css)