Changeset 18609 for tmp/version-2_5-test/data/pdf
- Timestamp:
- 2010/03/11 10:35:11 (16 years ago)
- Location:
- tmp/version-2_5-test/data/pdf
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
tmp/version-2_5-test/data/pdf/fpdf.php
r17232 r18609 1031 1031 { 1032 1032 //We send to a browser 1033 if(isset($_SERVER['HTTP_USER_AGENT']) and strpos($_SERVER['HTTP_USER_AGENT'],'MSIE')) { header('Pragma:'); } 1033 1034 header('Content-Type: application/pdf'); 1034 1035 if(headers_sent()) … … 1043 1044 if(ob_get_contents()) 1044 1045 $this->Error('Some data has already been output, can\'t send PDF file'); 1045 if(isset($_SERVER['HTTP_USER_AGENT']) && strpos($_SERVER['HTTP_USER_AGENT'],'MSIE')) 1046 if(isset($_SERVER['HTTP_USER_AGENT']) && strpos($_SERVER['HTTP_USER_AGENT'],'MSIE')) { 1047 header('Pragma:'); 1046 1048 header('Content-Type: application/force-download'); 1049 } 1047 1050 else 1048 1051 header('Content-Type: application/octet-stream'); -
tmp/version-2_5-test/data/pdf/fpdi.php
r17232 r18609 461 461 462 462 // for PHP5 463 if (!class_exists('fpdi')) { 464 class fpdi extends FPDI {} 463 if (version_compare("5", PHP_VERSION, "<")) { 464 if (!class_exists('fpdi')) { 465 class fpdi extends FPDI {} 466 } 465 467 } 466 468 ?> -
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.
