Lines Matching defs:width

89      * Give only one of the size parameters (width, height) to calculate the other one automatically in view to the
94 * with the keys "x", "y", "width", "height", "adjustPageSize".
96 * @param float|int|null $width The width.
102 public function useTemplate($tpl, $x = 0, $y = 0, $width = null, $height = null, $adjustPageSize = false)
121 $newSize = $this->getTemplateSize($tpl, $width, $height);
130 ($newSize['width'] / $originalSize['width']),
144 * Give only one of the size parameters (width, height) to calculate the other one automatically in view to the
148 * @param float|int|null $width The width.
150 * @return array|bool An array with following keys: width, height, 0 (=width), 1 (=height), orientation (L or P)
152 public function getTemplateSize($tpl, $width = null, $height = null)
158 if ($width === null && $height === null) {
159 $width = $this->templates[$tpl]['width'];
161 } elseif ($width === null) {
162 $width = $height * $this->templates[$tpl]['width'] / $this->templates[$tpl]['height'];
166 $height = $width * $this->templates[$tpl]['height'] / $this->templates[$tpl]['width'];
169 if ($height <= 0. || $width <= 0.) {
174 'width' => $width,
176 0 => $width,
178 'orientation' => $width > $height ? 'L' : 'P'
185 * @param float|int|null $width The width of the template. If null, the current page width is used.
190 public function beginTemplate($width = null, $height = null, $groupXObject = false)
192 if ($width === null) {
193 $width = $this->w;
225 'width' => $width,
254 $this->w = $width;
257 $this->SetRightMargin($this->w - $width + $this->rMargin);
379 public function SetLineWidth($width)
381 parent::SetLineWidth($width);
383 $this->_out(\sprintf('%.2F w', $width * $this->k));
421 $this->_put(\sprintf('/BBox[0 0 %.2F %.2F]', $template['width'] * $this->k, $template['height'] * $this->k));