| Conditions | 4 |
| Paths | 4 |
| Total Lines | 18 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 2 |
| 1 | <?php |
||
| 60 | public function render() |
||
| 61 | { |
||
| 62 | foreach ($this->files as $file) { |
||
| 63 | $this->setFileContent($file); |
||
| 64 | |||
| 65 | $count = $this->pdf->setSourceFile(StreamReader::createByString($this->content)); |
||
| 66 | |||
| 67 | for ($page = 1; $page <= $count; $page++) { |
||
| 68 | $this->pdf->AddPage(); |
||
| 69 | $importedPage = $this->pdf->ImportPage($page); |
||
| 70 | $this->pdf->useTemplate($importedPage); |
||
| 71 | if ($this->watermark) { |
||
| 72 | $this->pdf->Image($this->watermark, $this->w_x, $this->w_y, $this->w_width, $this->w_height); |
||
| 73 | } |
||
| 74 | } |
||
| 75 | } |
||
| 76 | |||
| 77 | return $this; |
||
| 78 | } |
||
| 80 |