code: def get_report_data(self, report):
          
          ar = report.getAnalysisRequest()
          attachments = map(self.get_attachment_data, ar.getAttachment())
          pdf = self.get_pdf(report)
          filesize = "{} Kb".format(self.get_filesize(pdf))
          filename = "{}.pdf".format(ar.getId())
  
          return {
              "ar": ar,
              "attachments": attachments,
              "pdf": pdf,
              "obj": report,
              "uid": api.get_uid(report),
              "filesize": filesize,
              "filename": filename,
          }
docs: Report data to be used in the template