Changeset 7655 for trunk/workflow/inc/fpdf/fpdf.php
- Timestamp:
- 12/14/12 14:30:35 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/workflow/inc/fpdf/fpdf.php
r795 r7655 431 431 $w=0; 432 432 $l=strlen($s); 433 for($i=0;$i<$l; $i++)433 for($i=0;$i<$l;++$i) 434 434 $w+=$cw[$s{$i}]; 435 435 return $w*$this->FontSize/1000; … … 486 486 $d=0; 487 487 $nb=count($this->diffs); 488 for($i=1;$i<=$nb; $i++)488 for($i=1;$i<=$nb;++$i) 489 489 { 490 490 if($this->diffs[$i]==$diff) … … 750 750 } 751 751 $this->Cell($w,$h,substr($s,$j,$i-$j),$b,2,$align,$fill); 752 $i++;752 ++$i; 753 753 $sep=-1; 754 754 $j=$i; 755 755 $l=0; 756 756 $ns=0; 757 $nl++;757 ++$nl; 758 758 if($border && $nl==2) 759 759 $b=$b2; … … 764 764 $sep=$i; 765 765 $ls=$l; 766 $ns++;766 ++$ns; 767 767 } 768 768 $l+=$cw[$c]; … … 773 773 { 774 774 if($i==$j) 775 $i++;775 ++$i; 776 776 if($this->ws>0) 777 777 { … … 795 795 $l=0; 796 796 $ns=0; 797 $nl++;797 ++$nl; 798 798 if($border && $nl==2) 799 799 $b=$b2; 800 800 } 801 801 else 802 $i++;802 ++$i; 803 803 } 804 804 //Last chunk … … 835 835 //Explicit line break 836 836 $this->Cell($w,$h,substr($s,$j,$i-$j),0,2,'',0,$link); 837 $i++;837 ++$i; 838 838 $sep=-1; 839 839 $j=$i; … … 845 845 $wmax=($w-2*$this->cMargin)*1000/$this->FontSize; 846 846 } 847 $nl++;847 ++$nl; 848 848 continue; 849 849 } … … 863 863 $w=$this->w-$this->rMargin-$this->x; 864 864 $wmax=($w-2*$this->cMargin)*1000/$this->FontSize; 865 $i++;866 $nl++;865 ++$i; 866 ++$nl; 867 867 continue; 868 868 } 869 869 if($i==$j) 870 $i++;870 ++$i; 871 871 $this->Cell($w,$h,substr($s,$j,$i-$j),0,2,'',0,$link); 872 872 } … … 885 885 $wmax=($w-2*$this->cMargin)*1000/$this->FontSize; 886 886 } 887 $nl++;887 ++$nl; 888 888 } 889 889 else 890 $i++;890 ++$i; 891 891 } 892 892 //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.']'); … … 1245 1245 $cw=&$font['cw']; 1246 1246 $s='['; 1247 for($i=32;$i<=255; $i++)1247 for($i=32;$i<=255;++$i) 1248 1248 $s.=$cw[chr($i)].' '; 1249 1249 $this->_out($s.']'); … … 1299 1299 { 1300 1300 $trns=''; 1301 for($i=0;$i<count($info['trns']);$i++) 1301 $info_count = count($info['trns']); 1302 for($i=0;$i<$info_count;++$i) 1302 1303 $trns.=$info['trns'][$i].' '.$info['trns'][$i].' '; 1303 1304 $this->_out('/Mask ['.$trns.']'); … … 1420 1421 $this->_out('0 '.($this->n+1)); 1421 1422 $this->_out('0000000000 65535 f '); 1422 for($i=1;$i<=$this->n; $i++)1423 for($i=1;$i<=$this->n;++$i) 1423 1424 $this->_out(sprintf('%010d 00000 n ',$this->offsets[$i])); 1424 1425 //Trailer
Note: See TracChangeset
for help on using the changeset viewer.