Changeset 18609 for tmp/version-2_5-test/data/pdf/japanese.php
- Timestamp:
- 2010/03/11 10:35:11 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tmp/version-2_5-test/data/pdf/japanese.php
r18007 r18609 1 1 <?php 2 require('fpdf.php');3 2 require('fpdi.php'); 4 3 … … 14 13 'x'=>503,'y'=>529,'z'=>453,'{'=>326,'|'=>380,'}'=>326,'~'=>387); 15 14 16 //class PDF_Japanese extends FPDF 17 class PDF_Japanese extends FPDI //変更 15 class PDF_Japanese extends FPDI 18 16 { 19 17 function AddCIDFont($family,$style,$name,$cw,$CMap,$registry) … … 38 36 //Add SJIS font with proportional Latin 39 37 $name='KozMinPro-Regular-Acro'; 40 //$name='Gothic'; // 変更38 //$name='Gothic'; // ÏX 41 39 $cw=$GLOBALS['SJIS_widths']; 42 40 $CMap='90msp-RKSJ-H'; … … 139 137 $l=0; 140 138 $nl=1; 141 $this->rise_h = 0; // 高さ計算用139 $this->rise_h = 0; //³vZp 142 140 143 141 while($i<$nb) … … 155 153 $l=0; 156 154 $nl++; 157 $this->rise_h += $h; // 高さ計算用155 $this->rise_h += $h; //³vZp 158 156 if($border and $nl==2) 159 157 $b=$b2; … … 196 194 $i=($s[$sep]==' ') ? $sep+1 : $sep; 197 195 } 198 $this->rise_h += $h; // 高さ計算用196 $this->rise_h += $h; //³vZp 199 197 $sep=-1; 200 198 $j=$i; … … 215 213 $b.='B'; 216 214 $this->Cell($w,$h,substr($s,$j,$i-$j),$b,$ln,$align,$fill); 217 $this->rise_h += $h; // 増加分の高さを計算218 // 改行なし設定かつ、高さが規定の高さ以上であればY軸を設定しなおす。215 $this->rise_h += $h; //ÁªÌ³ðvZ 216 //üsȵÝè©ÂA³ªKè̳ÈãÅ êÎY²ðÝèµÈ¨·B 219 217 if($ln == 0 and $h < $this->rise_h) { 220 218 $this->y = $this->y - $this->rise_h + $h; … … 528 526 function Footer() 529 527 { 530 // 下端から1.5 cm に移動528 //º[©ç1.5 cm ÉÚ® 531 529 $this->SetY(-15); 532 // フォントを設定。Arial italic 8530 //tHgðÝèB Arial italic 8 533 531 $this->SetFont('Arial','I',8); 534 // 現在のページ番号と総ページ数を出力532 //»ÝÌy[WÔÆy[WðoÍ 535 533 #$this->Cell(0,10,''.$this->PageNo().' / {nb}',0,0,'C'); 536 534 }
Note: See TracChangeset
for help on using the changeset viewer.