@@ -7,6 +7,9 @@ discard block |
||
| 7 | 7 | * Author: Olivier PLATHEY * |
| 8 | 8 | *******************************************************************************/ |
| 9 | 9 | |
| 10 | +/** |
|
| 11 | + * @param string $enc |
|
| 12 | + */ |
|
| 10 | 13 | function ReadMap($enc) |
| 11 | 14 | {
|
| 12 | 15 | //Read a map file |
@@ -134,6 +137,9 @@ discard block |
||
| 134 | 137 | return $fm; |
| 135 | 138 | } |
| 136 | 139 | |
| 140 | +/** |
|
| 141 | + * @param boolean $symbolic |
|
| 142 | + */ |
|
| 137 | 143 | function MakeFontDescriptor($fm, $symbolic) |
| 138 | 144 | {
|
| 139 | 145 | //Ascent |
@@ -229,6 +235,11 @@ discard block |
||
| 229 | 235 | return rtrim($s); |
| 230 | 236 | } |
| 231 | 237 | |
| 238 | +/** |
|
| 239 | + * @param string $file |
|
| 240 | + * @param string $s |
|
| 241 | + * @param string $mode |
|
| 242 | + */ |
|
| 232 | 243 | function SaveToFile($file, $s, $mode) |
| 233 | 244 | {
|
| 234 | 245 | $f=fopen($file,'w'.$mode); |
@@ -169,6 +169,10 @@ discard block |
||
| 169 | 169 | $this->PDFVersion = '1.3'; |
| 170 | 170 | } |
| 171 | 171 | |
| 172 | +/** |
|
| 173 | + * @param double $left |
|
| 174 | + * @param double $top |
|
| 175 | + */ |
|
| 172 | 176 | function SetMargins($left, $top, $right=null) |
| 173 | 177 | {
|
| 174 | 178 | // Set left, top and right margins |
@@ -193,6 +197,9 @@ discard block |
||
| 193 | 197 | $this->tMargin = $margin; |
| 194 | 198 | } |
| 195 | 199 | |
| 200 | +/** |
|
| 201 | + * @param double $margin |
|
| 202 | + */ |
|
| 196 | 203 | function SetRightMargin($margin) |
| 197 | 204 | {
|
| 198 | 205 | // Set right margin |
@@ -207,6 +214,9 @@ discard block |
||
| 207 | 214 | $this->PageBreakTrigger = $this->h-$margin; |
| 208 | 215 | } |
| 209 | 216 | |
| 217 | +/** |
|
| 218 | + * @param string $zoom |
|
| 219 | + */ |
|
| 210 | 220 | function SetDisplayMode($zoom, $layout='default') |
| 211 | 221 | {
|
| 212 | 222 | // Set display mode in viewer |
@@ -220,6 +230,9 @@ discard block |
||
| 220 | 230 | $this->Error('Incorrect layout display mode: '.$layout);
|
| 221 | 231 | } |
| 222 | 232 | |
| 233 | +/** |
|
| 234 | + * @param boolean $compress |
|
| 235 | + */ |
|
| 223 | 236 | function SetCompression($compress) |
| 224 | 237 | {
|
| 225 | 238 | // Set page compression |
@@ -444,6 +457,9 @@ discard block |
||
| 444 | 457 | $this->_out(sprintf('%.2F %.2F %.2F %.2F re %s',$x*$this->k,($this->h-$y)*$this->k,$w*$this->k,-$h*$this->k,$op));
|
| 445 | 458 | } |
| 446 | 459 | |
| 460 | +/** |
|
| 461 | + * @param string $family |
|
| 462 | + */ |
|
| 447 | 463 | function AddFont($family, $style='', $file='') |
| 448 | 464 | {
|
| 449 | 465 | // Add a TrueType, OpenType or Type1 font |
@@ -1083,6 +1099,11 @@ discard block |
||
| 1083 | 1099 | } |
| 1084 | 1100 | } |
| 1085 | 1101 | |
| 1102 | +/** |
|
| 1103 | + * @param string $orientation |
|
| 1104 | + * @param string $size |
|
| 1105 | + * @param integer $rotation |
|
| 1106 | + */ |
|
| 1086 | 1107 | protected function _beginpage($orientation, $size, $rotation) |
| 1087 | 1108 | {
|
| 1088 | 1109 | $this->page++; |
@@ -1135,6 +1156,9 @@ discard block |
||
| 1135 | 1156 | $this->state = 1; |
| 1136 | 1157 | } |
| 1137 | 1158 | |
| 1159 | +/** |
|
| 1160 | + * @param string $font |
|
| 1161 | + */ |
|
| 1138 | 1162 | protected function _loadfont($font) |
| 1139 | 1163 | {
|
| 1140 | 1164 | // Load a font definition file from the font directory |
@@ -1162,6 +1186,11 @@ discard block |
||
| 1162 | 1186 | return true; |
| 1163 | 1187 | } |
| 1164 | 1188 | |
| 1189 | +/** |
|
| 1190 | + * @param string $param |
|
| 1191 | + * @param string $value |
|
| 1192 | + * @param boolean $isUTF8 |
|
| 1193 | + */ |
|
| 1165 | 1194 | protected function _httpencode($param, $value, $isUTF8) |
| 1166 | 1195 | {
|
| 1167 | 1196 | // Encode HTTP header field parameter |
@@ -1462,6 +1491,9 @@ discard block |
||
| 1462 | 1491 | return strlen($this->buffer); |
| 1463 | 1492 | } |
| 1464 | 1493 | |
| 1494 | +/** |
|
| 1495 | + * @param integer $n |
|
| 1496 | + */ |
|
| 1465 | 1497 | protected function _newobj($n=null) |
| 1466 | 1498 | {
|
| 1467 | 1499 | // Begin a new object |
@@ -1494,6 +1526,9 @@ discard block |
||
| 1494 | 1526 | $this->_put('endobj');
|
| 1495 | 1527 | } |
| 1496 | 1528 | |
| 1529 | +/** |
|
| 1530 | + * @param integer $n |
|
| 1531 | + */ |
|
| 1497 | 1532 | protected function _putpage($n) |
| 1498 | 1533 | {
|
| 1499 | 1534 | $this->_newobj(); |
@@ -388,6 +388,7 @@ |
||
| 388 | 388 | |
| 389 | 389 | /** |
| 390 | 390 | * Private Method |
| 391 | + * @param string $s |
|
| 391 | 392 | */ |
| 392 | 393 | function _out($s) {
|
| 393 | 394 | if ($this->state==2 && $this->_intpl) {
|
@@ -64,7 +64,7 @@ |
||
| 64 | 64 | * Constructor |
| 65 | 65 | * |
| 66 | 66 | * @param string $filename Source-Filename |
| 67 | - * @param object $fpdi Object of type fpdi |
|
| 67 | + * @param FPDI $fpdi Object of type fpdi |
|
| 68 | 68 | */ |
| 69 | 69 | function fpdi_pdf_parser($filename,&$fpdi) {
|
| 70 | 70 | $this->fpdi =& $fpdi; |
@@ -7,6 +7,9 @@ discard block |
||
| 7 | 7 | * Author: Olivier PLATHEY * |
| 8 | 8 | *******************************************************************************/ |
| 9 | 9 | |
| 10 | +/** |
|
| 11 | + * @param string $enc |
|
| 12 | + */ |
|
| 10 | 13 | function ReadMap($enc) |
| 11 | 14 | {
|
| 12 | 15 | //Read a map file |
@@ -134,6 +137,9 @@ discard block |
||
| 134 | 137 | return $fm; |
| 135 | 138 | } |
| 136 | 139 | |
| 140 | +/** |
|
| 141 | + * @param boolean $symbolic |
|
| 142 | + */ |
|
| 137 | 143 | function MakeFontDescriptor($fm, $symbolic) |
| 138 | 144 | {
|
| 139 | 145 | //Ascent |
@@ -229,6 +235,11 @@ discard block |
||
| 229 | 235 | return rtrim($s); |
| 230 | 236 | } |
| 231 | 237 | |
| 238 | +/** |
|
| 239 | + * @param string $file |
|
| 240 | + * @param string $s |
|
| 241 | + * @param string $mode |
|
| 242 | + */ |
|
| 232 | 243 | function SaveToFile($file, $s, $mode) |
| 233 | 244 | {
|
| 234 | 245 | $f=fopen($file,'w'.$mode); |
@@ -374,6 +374,9 @@ |
||
| 374 | 374 | |
| 375 | 375 | // UTF-8 to codepoint array conversion. |
| 376 | 376 | // Correctly handles all illegal UTF-8 sequences. |
| 377 | +/** |
|
| 378 | + * @param string $txt |
|
| 379 | + */ |
|
| 377 | 380 | function utf8_to_codepoints(&$txt) {
|
| 378 | 381 | $l = strlen($txt); |
| 379 | 382 | $out = array(); |