Lines Matching refs:height
289 list($width, $height) = $page->getWidthAndHeight($box);
378 'height' => $height / $this->k,
388 * Give only one of the size parameters (width, height) to calculate the other one automatically in view to the
393 * with the keys "x", "y", "width", "height", "adjustPageSize".
396 * @param float|int|null $height The height.
401 public function useImportedPage($pageId, $x = 0, $y = 0, $width = null, $height = null, $adjustPageSize = false)
420 $newSize = $this->getTemplateSize($pageId, $width, $height);
430 ($newSize['height'] / $originalSize['height']),
432 ($this->h - $y - $newSize['height']) * $this->k,
443 * Give only one of the size parameters (width, height) to calculate the other one automatically in view to the
448 * @param float|int|null $height The height.
449 * @return array|bool An array with following keys: width, height, 0 (=width), 1 (=height), orientation (L or P)
451 public function getImportedPageSize($tpl, $width = null, $height = null)
456 if ($width === null && $height === null) {
458 $height = $importedPage['height'];
460 $width = $height * $importedPage['width'] / $importedPage['height'];
463 if ($height === null) {
464 $height = $width * $importedPage['height'] / $importedPage['width'];
467 if ($height <= 0. || $width <= 0.) {
468 throw new \InvalidArgumentException('Width or height parameter needs to be larger than zero.');
473 'height' => $height,
475 1 => $height,
476 'orientation' => $width > $height ? 'L' : 'P'