Changeset 18432 for branches/version-2/data/class/SC_Fpdf.php
- Timestamp:
- 2009/12/07 15:08:06 (17 years ago)
- File:
-
- 1 edited
-
branches/version-2/data/class/SC_Fpdf.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2/data/class/SC_Fpdf.php
r18177 r18432 28 28 */ 29 29 30 require(DATA_PATH . 'pdf/japanese.php'); 31 define('PDF_TEMPLATE_DIR', DATA_PATH . 'pdf/'); 30 require(DATA_PATH . 'module/pdf/japanese.php'); 32 31 define('PDF_IMG_DIR', HTML_PATH. USER_DIR. USER_PACKAGE_DIR. TEMPLATE_NAME. '/img/pdf/'); 33 32 … … 36 35 $this->arrData = $arrData; 37 36 // デフォルトの設定 38 $this->tpl_pdf = PDF_ TEMPLATE_DIR . $tpl_pdf; // テンプレートファイル37 $this->tpl_pdf = PDF_DIR . $tpl_pdf; // テンプレートファイル 39 38 $this->pdf_download = $download; // PDFのダウンロード形式(0:表示、1:ダウンロード) 40 39 $this->tpl_title = $title; … … 123 122 $this->lfText(125, 83, $text, 8); //Email 124 123 } 124 125 125 //ロゴ画像 126 $logo_file = PDF_ TEMPLATE_DIR . 'logo.png';126 $logo_file = PDF_IMG_DIR . 'logo.png'; 127 127 $this->pdf->Image($logo_file, 124, 46, 40); 128 128 } … … 296 296 // PDF_Japanese::Text へのパーサー 297 297 function lfText($x, $y, $text, $size, $style = '') { 298 $text = mb_convert_encoding($text, "SJIS ", CHAR_CODE);298 $text = mb_convert_encoding($text, "SJIS-win", CHAR_CODE); 299 299 300 300 $this->pdf->SetFont('SJIS', $style, $size);
Note: See TracChangeset
for help on using the changeset viewer.
