17 return new \Dompdf\Dompdf();
25 public function save($pFilename): void
34 $orientation = ($this->spreadsheet->getSheet(0)->getPageSetup()->getOrientation()
36 $printPaperSize = $this->spreadsheet->getSheet(0)->getPageSetup()->getPaperSize();
40 $printPaperSize = $this->spreadsheet->getSheet($this->
getSheetIndex())->getPageSetup()->getPaperSize();
56 if (isset(self::$paperSizes[$printPaperSize])) {
57 $paperSize = self::$paperSizes[$printPaperSize];
64 $pdf->loadHtml($this->generateHTMLAll());
70 parent::restoreStateAfterSave();
getSheetIndex()
Get sheet index.
getPaperSize()
Get Paper Size.
const ORIENTATION_LANDSCAPE
getOrientation()
Get Orientation.
const ORIENTATION_PORTRAIT
createExternalWriterInstance()
Gets the implementation of external PDF library that should be used.
const ORIENTATION_DEFAULT
save($pFilename)
Save Spreadsheet to file.