Lines Matching defs:orientation
46 * @param string $orientation "L" for landscape, "P" for portrait.
49 public function setPageFormat($size, $orientation)
55 if (!\in_array($orientation, ['P', 'L'], true)) {
57 'Invalid page orientation "%s"! Only "P" and "L" are allowed!',
58 $orientation
64 if ($orientation != $this->CurOrientation
68 // New size or orientation
69 if ($orientation === 'P') {
79 $this->CurOrientation = $orientation;
123 $this->setPageFormat($newSize, $newSize['orientation']);
150 * @return array|bool An array with following keys: width, height, 0 (=width), 1 (=height), orientation (L or P)
178 'orientation' => $width > $height ? 'L' : 'P'
324 public function AddPage($orientation = '', $size = '', $rotation = 0)
329 parent::AddPage($orientation, $size, $rotation);