src/PhpSpreadsheet/Writer/PDF/DomPDF.php 1 location
|
@@ 76-80 (lines=5) @@
|
73 |
|
$orientation = ($orientation == 'L') ? 'landscape' : 'portrait'; |
74 |
|
|
75 |
|
// Override Page Orientation |
76 |
|
if (!is_null($this->getOrientation())) { |
77 |
|
$orientation = ($this->getOrientation() == \PhpSpreadsheet\Worksheet\PageSetup::ORIENTATION_DEFAULT) |
78 |
|
? \PhpSpreadsheet\Worksheet\PageSetup::ORIENTATION_PORTRAIT |
79 |
|
: $this->getOrientation(); |
80 |
|
} |
81 |
|
// Override Paper Size |
82 |
|
if (!is_null($this->getPaperSize())) { |
83 |
|
$printPaperSize = $this->getPaperSize(); |
src/PhpSpreadsheet/Writer/PDF/MPDF.php 1 location
|
@@ 75-79 (lines=5) @@
|
72 |
|
$this->setOrientation($orientation); |
73 |
|
|
74 |
|
// Override Page Orientation |
75 |
|
if (!is_null($this->getOrientation())) { |
76 |
|
$orientation = ($this->getOrientation() == \PhpSpreadsheet\Worksheet\PageSetup::ORIENTATION_DEFAULT) |
77 |
|
? \PhpSpreadsheet\Worksheet\PageSetup::ORIENTATION_PORTRAIT |
78 |
|
: $this->getOrientation(); |
79 |
|
} |
80 |
|
$orientation = strtoupper($orientation); |
81 |
|
|
82 |
|
// Override Paper Size |