| @@ 1106-1115 (lines=10) @@ | ||
| 1103 | if($orientation!=$this->CurOrientation || $size[0]!=$this->CurPageSize[0] || $size[1]!=$this->CurPageSize[1]) |
|
| 1104 | {
|
|
| 1105 | // New size or orientation |
|
| 1106 | if($orientation=='P') |
|
| 1107 | {
|
|
| 1108 | $this->w = $size[0]; |
|
| 1109 | $this->h = $size[1]; |
|
| 1110 | } |
|
| 1111 | else |
|
| 1112 | {
|
|
| 1113 | $this->w = $size[1]; |
|
| 1114 | $this->h = $size[0]; |
|
| 1115 | } |
|
| 1116 | $this->wPt = $this->w*$this->k; |
|
| 1117 | $this->hPt = $this->h*$this->k; |
|
| 1118 | $this->PageBreakTrigger = $this->h-$this->bMargin; |
|
| @@ 1554-1563 (lines=10) @@ | ||
| 1551 | $kids .= $this->PageInfo[$n]['n'].' 0 R '; |
|
| 1552 | $this->_put($kids.']'); |
|
| 1553 | $this->_put('/Count '.$nb);
|
|
| 1554 | if($this->DefOrientation=='P') |
|
| 1555 | {
|
|
| 1556 | $w = $this->DefPageSize[0]; |
|
| 1557 | $h = $this->DefPageSize[1]; |
|
| 1558 | } |
|
| 1559 | else |
|
| 1560 | {
|
|
| 1561 | $w = $this->DefPageSize[1]; |
|
| 1562 | $h = $this->DefPageSize[0]; |
|
| 1563 | } |
|
| 1564 | $this->_put(sprintf('/MediaBox [0 0 %.2F %.2F]',$w*$this->k,$h*$this->k));
|
|
| 1565 | $this->_put('>>');
|
|
| 1566 | $this->_put('endobj');
|
|