@@ -132,7 +132,7 @@ discard block |
||
| 132 | 132 | * Returns a PDF parser object |
| 133 | 133 | * |
| 134 | 134 | * @param string $filename |
| 135 | - * @return fpdi_pdf_parser |
|
| 135 | + * @return tcpdi_parser |
|
| 136 | 136 | */ |
| 137 | 137 | protected function _getPdfParser($filename) { |
| 138 | 138 | $data = file_get_contents($filename); |
@@ -373,6 +373,9 @@ discard block |
||
| 373 | 373 | } |
| 374 | 374 | |
| 375 | 375 | |
| 376 | + /** |
|
| 377 | + * @param integer $tplidx |
|
| 378 | + */ |
|
| 376 | 379 | public function useTemplate($tplidx, $_x = null, $_y = null, $_w = 0, $_h = 0, $adjustPageSize = false) { |
| 377 | 380 | if ($adjustPageSize == true && is_null($_x) && is_null($_y)) { |
| 378 | 381 | $size = $this->getTemplateSize($tplidx, $_w, $_h); |
@@ -683,6 +686,7 @@ discard block |
||
| 683 | 686 | |
| 684 | 687 | /** |
| 685 | 688 | * Modified so not each call will add a newline to the output. |
| 689 | + * @param string $s |
|
| 686 | 690 | */ |
| 687 | 691 | protected function _straightOut($s) { |
| 688 | 692 | if ($this->state == 2) { |
@@ -174,7 +174,8 @@ discard block |
||
| 174 | 174 | |
| 175 | 175 | /** |
| 176 | 176 | * Parse a PDF document an return an array of objects. |
| 177 | - * @param $data (string) PDF data to parse. |
|
| 177 | + * @param string $data (string) PDF data to parse. |
|
| 178 | + * @param string $uniqueid |
|
| 178 | 179 | * @public |
| 179 | 180 | * @since 1.0.000 (2011-05-24) |
| 180 | 181 | */ |
@@ -883,6 +884,10 @@ discard block |
||
| 883 | 884 | } |
| 884 | 885 | return array($obj, $offset); |
| 885 | 886 | } |
| 887 | + |
|
| 888 | + /** |
|
| 889 | + * @param integer $offset |
|
| 890 | + */ |
|
| 886 | 891 | private function getDictValue($offset, &$data) { |
| 887 | 892 | $objval = array(); |
| 888 | 893 | |
@@ -1035,6 +1040,7 @@ discard block |
||
| 1035 | 1040 | /** |
| 1036 | 1041 | * Extract object stream to find out what it contains. |
| 1037 | 1042 | * |
| 1043 | + * @param string[] $key |
|
| 1038 | 1044 | */ |
| 1039 | 1045 | function extractObjectStream($key) { |
| 1040 | 1046 | $objref = array(PDF_TYPE_OBJREF, $key[0], $key[1]); |
@@ -1116,7 +1122,7 @@ discard block |
||
| 1116 | 1122 | * Decode the specified stream. |
| 1117 | 1123 | * @param $sdic (array) Stream's dictionary array. |
| 1118 | 1124 | * @param $stream (string) Stream to decode. |
| 1119 | - * @return array containing decoded stream data and remaining filters. |
|
| 1125 | + * @return integer|null containing decoded stream data and remaining filters. |
|
| 1120 | 1126 | * @protected |
| 1121 | 1127 | * @since 1.0.000 (2011-06-22) |
| 1122 | 1128 | */ |