public function generate()
	{
		if (!$this->mpdf) {
			$this->init();
		}
		// Better to avoid having mpdf set any headers as these can interfer with symfony responses
		$output = $this->mpdf->Output('', 'S');
		$time = microtime(true) - $this->start_time;
		$this->logger->debug("sasedev_mpdf: pdf generation took " . $time . " seconds");
		return $output;
	}