Changeset 7655 for trunk/phpgwapi/inc/fpdf/fpdf.php
- Timestamp:
- 12/14/12 14:30:35 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/phpgwapi/inc/fpdf/fpdf.php
r2 r7655 427 427 $w=0; 428 428 $l=strlen($s); 429 for($i=0;$i<$l; $i++)429 for($i=0;$i<$l;++$i) 430 430 $w+=$cw[$s{$i}]; 431 431 return $w*$this->FontSize/1000; … … 483 483 $d=0; 484 484 $nb=count($this->diffs); 485 for($i=1;$i<=$nb; $i++)485 for($i=1;$i<=$nb;++$i) 486 486 if($this->diffs[$i]==$diff) 487 487 { … … 748 748 } 749 749 $this->Cell($w,$h,substr($s,$j,$i-$j),$b,2,$align,$fill); 750 $i++;750 ++$i; 751 751 $sep=-1; 752 752 $j=$i; 753 753 $l=0; 754 754 $ns=0; 755 $nl++;755 ++$nl; 756 756 if($border and $nl==2) 757 757 $b=$b2; … … 762 762 $sep=$i; 763 763 $ls=$l; 764 $ns++;764 ++$ns; 765 765 } 766 766 $l+=$cw[$c]; … … 771 771 { 772 772 if($i==$j) 773 $i++;773 ++$i; 774 774 if($this->ws>0) 775 775 { … … 793 793 $l=0; 794 794 $ns=0; 795 $nl++;795 ++$nl; 796 796 if($border and $nl==2) 797 797 $b=$b2; 798 798 } 799 799 else 800 $i++;800 ++$i; 801 801 } 802 802 //Last chunk … … 837 837 //Explicit line break 838 838 $this->Cell($w,$h,substr($s,$j,$i-$j),0,2,'',0,$link); 839 $i++;839 ++$i; 840 840 $sep=-1; 841 841 $j=$i; … … 847 847 $wmax=($w-2*$this->cMargin)*1000/$this->FontSize; 848 848 } 849 $nl++;849 ++$nl; 850 850 continue; 851 851 } … … 865 865 $w=$this->w-$this->rMargin-$this->x; 866 866 $wmax=($w-2*$this->cMargin)*1000/$this->FontSize; 867 $i++;868 $nl++;867 ++$i; 868 ++$nl; 869 869 continue; 870 870 } 871 871 if($i==$j) 872 $i++;872 ++$i; 873 873 $this->Cell($w,$h,substr($s,$j,$i-$j),0,2,'',0,$link); 874 874 } … … 887 887 $wmax=($w-2*$this->cMargin)*1000/$this->FontSize; 888 888 } 889 $nl++;889 ++$nl; 890 890 } 891 891 else 892 $i++;892 ++$i; 893 893 } 894 894 //Last chunk … … 1089 1089 { 1090 1090 //Replace number of pages 1091 for($n=1;$n<=$nb; $n++)1091 for($n=1;$n<=$nb;++$n) 1092 1092 $this->pages[$n]=str_replace($this->AliasNbPages,$nb,$this->pages[$n]); 1093 1093 } … … 1103 1103 } 1104 1104 $filter=($this->compress) ? '/Filter /FlateDecode ' : ''; 1105 for($n=1;$n<=$nb; $n++)1105 for($n=1;$n<=$nb;++$n) 1106 1106 { 1107 1107 //Page … … 1145 1145 $this->_out('<</Type /Pages'); 1146 1146 $kids='/Kids ['; 1147 for($i=0;$i<$nb; $i++)1147 for($i=0;$i<$nb;++$i) 1148 1148 $kids.=(3+2*$i).' 0 R '; 1149 1149 $this->_out($kids.']'); … … 1230 1230 $cw=&$font['cw']; 1231 1231 $s='['; 1232 for($i=32;$i<=255; $i++)1232 for($i=32;$i<=255;++$i) 1233 1233 $s.=$cw[chr($i)].' '; 1234 1234 $this->_out($s.']'); … … 1283 1283 { 1284 1284 $trns=''; 1285 for($i=0;$i<count($info['trns']); $i++)1285 for($i=0;$i<count($info['trns']);++$i) 1286 1286 $trns.=$info['trns'][$i].' '.$info['trns'][$i].' '; 1287 1287 $this->_out('/Mask ['.$trns.']'); … … 1390 1390 $this->_out('0 '.($this->n+1)); 1391 1391 $this->_out('0000000000 65535 f '); 1392 for($i=1;$i<=$this->n; $i++)1392 for($i=1;$i<=$this->n;++$i) 1393 1393 $this->_out(sprintf('%010d 00000 n ',$this->offsets[$i])); 1394 1394 //Trailer
Note: See TracChangeset
for help on using the changeset viewer.