@@ -168,6 +168,9 @@ discard block |
||
| 168 | 168 | $this->pdfVersion='1.3'; |
| 169 | 169 | } |
| 170 | 170 | |
| 171 | + /** |
|
| 172 | + * @param integer $right |
|
| 173 | + */ |
|
| 171 | 174 | public function setMargins($left, $top, $right = null) |
| 172 | 175 | { |
| 173 | 176 | //Set left, top and right margins |
@@ -200,6 +203,9 @@ discard block |
||
| 200 | 203 | $this->rMargin = $margin; |
| 201 | 204 | } |
| 202 | 205 | |
| 206 | + /** |
|
| 207 | + * @param boolean $auto |
|
| 208 | + */ |
|
| 203 | 209 | public function setAutoPageBreak($auto, $margin = 0) |
| 204 | 210 | { |
| 205 | 211 | //Set auto page break mode and triggering margin |
@@ -208,6 +214,9 @@ discard block |
||
| 208 | 214 | $this->pageBreakTrigger = $this->h-$margin; |
| 209 | 215 | } |
| 210 | 216 | |
| 217 | + /** |
|
| 218 | + * @param string $zoom |
|
| 219 | + */ |
|
| 211 | 220 | public function setDisplayMode($zoom, $layout = 'continuous') |
| 212 | 221 | { |
| 213 | 222 | //Set display mode in viewer |
@@ -223,6 +232,9 @@ discard block |
||
| 223 | 232 | } |
| 224 | 233 | } |
| 225 | 234 | |
| 235 | + /** |
|
| 236 | + * @param boolean $compress |
|
| 237 | + */ |
|
| 226 | 238 | public function setCompression($compress) |
| 227 | 239 | { |
| 228 | 240 | //Set page compression |
@@ -284,6 +296,9 @@ discard block |
||
| 284 | 296 | $this->aliasNbPages=$alias; |
| 285 | 297 | } |
| 286 | 298 | |
| 299 | + /** |
|
| 300 | + * @param string $msg |
|
| 301 | + */ |
|
| 287 | 302 | public function error($msg) |
| 288 | 303 | { |
| 289 | 304 | throw new \Exception($msg); |
@@ -400,6 +415,11 @@ discard block |
||
| 400 | 415 | return $this->page; |
| 401 | 416 | } |
| 402 | 417 | |
| 418 | + /** |
|
| 419 | + * @param integer $r |
|
| 420 | + * @param integer $g |
|
| 421 | + * @param integer $b |
|
| 422 | + */ |
|
| 403 | 423 | public function setDrawColor($r, $g = null, $b = null) |
| 404 | 424 | { |
| 405 | 425 | //Set color for all stroking operations |
@@ -413,6 +433,11 @@ discard block |
||
| 413 | 433 | } |
| 414 | 434 | } |
| 415 | 435 | |
| 436 | + /** |
|
| 437 | + * @param integer $r |
|
| 438 | + * @param integer $g |
|
| 439 | + * @param integer $b |
|
| 440 | + */ |
|
| 416 | 441 | public function setFillColor($r, $g = null, $b = null) |
| 417 | 442 | { |
| 418 | 443 | //Set color for all filling operations |
@@ -427,6 +452,11 @@ discard block |
||
| 427 | 452 | } |
| 428 | 453 | } |
| 429 | 454 | |
| 455 | + /** |
|
| 456 | + * @param integer $r |
|
| 457 | + * @param integer $g |
|
| 458 | + * @param integer $b |
|
| 459 | + */ |
|
| 430 | 460 | public function settextColor($r, $g = null, $b = null) |
| 431 | 461 | { |
| 432 | 462 | //Set color for text |
@@ -555,6 +585,9 @@ discard block |
||
| 555 | 585 | } |
| 556 | 586 | } |
| 557 | 587 | |
| 588 | + /** |
|
| 589 | + * @param string $family |
|
| 590 | + */ |
|
| 558 | 591 | public function setFont($family, $style = '', $size = 0) |
| 559 | 592 | { |
| 560 | 593 | //Select a font; size given in points |
@@ -653,6 +686,10 @@ discard block |
||
| 653 | 686 | $this->links[$link] = array($page, $y); |
| 654 | 687 | } |
| 655 | 688 | |
| 689 | + /** |
|
| 690 | + * @param double $y |
|
| 691 | + * @param string $link |
|
| 692 | + */ |
|
| 656 | 693 | public function link($x, $y, $w, $h, $link) |
| 657 | 694 | { |
| 658 | 695 | //Put a link on the page |
@@ -988,6 +1025,10 @@ discard block |
||
| 988 | 1025 | } |
| 989 | 1026 | } |
| 990 | 1027 | |
| 1028 | + /** |
|
| 1029 | + * @param string $file |
|
| 1030 | + * @param double $x |
|
| 1031 | + */ |
|
| 991 | 1032 | public function image($file, $x = null, $y = null, $w = 0, $h = 0, $type = '', $link = '') |
| 992 | 1033 | { |
| 993 | 1034 | //Put an image on the page |
@@ -1190,6 +1231,9 @@ discard block |
||
| 1190 | 1231 | } |
| 1191 | 1232 | } |
| 1192 | 1233 | |
| 1234 | + /** |
|
| 1235 | + * @param string $format |
|
| 1236 | + */ |
|
| 1193 | 1237 | protected function getpageformat($format) |
| 1194 | 1238 | { |
| 1195 | 1239 | $format=strtolower($format); |
@@ -1208,6 +1252,10 @@ discard block |
||
| 1208 | 1252 | return defined('FPDF_FONTPATH') ? FPDF_FONTPATH : ''; |
| 1209 | 1253 | } |
| 1210 | 1254 | |
| 1255 | + /** |
|
| 1256 | + * @param string $orientation |
|
| 1257 | + * @param string $format |
|
| 1258 | + */ |
|
| 1211 | 1259 | protected function beginPage($orientation, $format) |
| 1212 | 1260 | { |
| 1213 | 1261 | $this->page++; |
@@ -1346,6 +1394,9 @@ discard block |
||
| 1346 | 1394 | return array('w'=>$a[0], 'h'=>$a[1], 'cs'=>$colspace, 'bpc'=>$bpc, 'f'=>'DCTDecode', 'data'=>$data); |
| 1347 | 1395 | } |
| 1348 | 1396 | |
| 1397 | + /** |
|
| 1398 | + * @param string $file |
|
| 1399 | + */ |
|
| 1349 | 1400 | protected function parsePNG($file) |
| 1350 | 1401 | { |
| 1351 | 1402 | //Extract info from a PNG file |