public function __construct(Report $report) { parent::__construct($report); $this->pdf = new \WKPDF(WKPDF_PATH); if (USE_XVFB) { $this->pdf->setXVFB(XVFB_PATH); } $this->pdf->set_orientation('Landscape'); }
/** * Constructor * * @param Report $report The report instance we're working with. * @param ReportHtmlView $htmlView The ReportHtmlView to convert. */ public function __construct(Report $report, ReportHtmlView $htmlView) { parent::__construct($report); $this->htmlView = $htmlView; $this->pdf = new \WKPDF(WKPDF_PATH); if (USE_XVFB) { $this->pdf->setXVFB(XVFB_PATH); } }