| @@ 29-47 (lines=19) @@ | ||
| 26 | $size = $this->DefPageSize; |
|
| 27 | else |
|
| 28 | $size = $this->_getpagesize($size); |
|
| 29 | if($orientation!=$this->CurOrientation || $size[0]!=$this->CurPageSize[0] || $size[1]!=$this->CurPageSize[1]) |
|
| 30 | { |
|
| 31 | // New size or orientation |
|
| 32 | if($orientation=='P') |
|
| 33 | { |
|
| 34 | $this->w = $size[0]; |
|
| 35 | $this->h = $size[1]; |
|
| 36 | } |
|
| 37 | else |
|
| 38 | { |
|
| 39 | $this->w = $size[1]; |
|
| 40 | $this->h = $size[0]; |
|
| 41 | } |
|
| 42 | $this->wPt = $this->w*$this->k; |
|
| 43 | $this->hPt = $this->h*$this->k; |
|
| 44 | $this->PageBreakTrigger = $this->h-$this->bMargin; |
|
| 45 | $this->CurOrientation = $orientation; |
|
| 46 | $this->CurPageSize = $size; |
|
| 47 | } |
|
| 48 | if($orientation!=$this->DefOrientation || $size[0]!=$this->DefPageSize[0] || $size[1]!=$this->DefPageSize[1]) |
|
| 49 | $this->PageSizes[$this->page] = array($this->wPt, $this->hPt); |
|
| 50 | } |
|
| @@ 1184-1202 (lines=19) @@ | ||
| 1181 | $size = $this->DefPageSize; |
|
| 1182 | else |
|
| 1183 | $size = $this->_getpagesize($size); |
|
| 1184 | if ($orientation != $this->CurOrientation || $size[0] != $this->CurPageSize[0] || $size[1] != $this->CurPageSize[1]) |
|
| 1185 | {
|
|
| 1186 | // New size or orientation |
|
| 1187 | if ($orientation == 'P') |
|
| 1188 | {
|
|
| 1189 | $this->w = $size[0]; |
|
| 1190 | $this->h = $size[1]; |
|
| 1191 | } else |
|
| 1192 | {
|
|
| 1193 | $this->w = $size[1]; |
|
| 1194 | $this->h = $size[0]; |
|
| 1195 | } |
|
| 1196 | $this->wPt = $this->w * $this->k; |
|
| 1197 | $this->hPt = $this->h * $this->k; |
|
| 1198 | $this->PageBreakTrigger = $this->h - $this->bMargin; |
|
| 1199 | $this->CurOrientation = $orientation; |
|
| 1200 | $this->CurPageSize = $size; |
|
| 1201 | } |
|
| 1202 | if ($orientation != $this->DefOrientation || $size[0] != $this->DefPageSize[0] || $size[1] != $this->DefPageSize[1]) |
|
| 1203 | $this->PageSizes[$this->page] = array($this->wPt, $this->hPt); |
|
| 1204 | } |
|
| 1205 | ||