Index: branches/comu/data/class/SC_Pdf.php
===================================================================
--- branches/comu/data/class/SC_Pdf.php	(revision 15)
+++ branches/comu/data/class/SC_Pdf.php	(revision 11729)
@@ -7,10 +7,10 @@
 
 /*----------------------------------------------------------------------
- * [Ì¾¾Î] GC_Pdf
- * [³µÍ×] Pdf¥Õ¥¡¥¤¥ë¤òÉ½¼¨¤¹¤ë¡£(PDFLibÉ¬¿Ü)
+ * [名称] GC_Pdf
+ * [概要] Pdfファイルを表示する。(PDFLib必須)
  *----------------------------------------------------------------------
  */
 
-// ¥°¥ê¥Ã¥É¤ÈÊ¸»ú¤Î´Ö³Ö 
+// グリッドと文字の間隔 
 define("GRID_SPACE", 4);
 
@@ -29,44 +29,44 @@
 		$this->license_key = "B600602-010400-714251-5851C1";
 		$this->src_code = CHAR_CODE;
-		// UTF-8¤Ç¤Ê¤¤¤È¥Ö¥í¥Ã¥¯Æâ¤Ç²þ¹Ô¤Ç¤­¤Ê¤¤¡£
+		// UTF-8でないとブロック内で改行できない。
 		$this->dst_code = "UTF-8";
-		// PDF BLOCK¤Î¥×¥í¥Ñ¥Æ¥£
+		// PDF BLOCKのプロパティ
 		$this->block_option = "encoding=UniJIS-UCS2-H textformat=utf8 fontname=HeiseiMin-W3 textflow=true";
-		// ·Ù¹ðÉ½¼¨
+		// 警告表示
 		$this->pdiwarning = "true";	
-		// ¥Ú¡¼¥¸¥µ¥¤¥ºÀßÄê
+		// ページサイズ設定
 		$this->width = $width;
 		$this->height = $height;
-		// PDF½é´ü²½
+		// PDF初期化
 		$this->pdf = PDF_new();
 		PDF_set_parameter($this->pdf, "license", $this->license_key);
 		PDF_set_parameter($this->pdf, "pdiwarning", $this->pdiwarning);
-		// ¥É¥­¥å¥á¥ó¥È³«»Ï
+		// ドキュメント開始
 		PDF_begin_document($this->pdf, NULL, NULL);
-		// ¥Ú¡¼¥¸¤Î¾õÂÖ
+		// ページの状態
 		$this->page_open = false;
-		// ¥Æ¡¼¥Ö¥ë¤Î¿§ÀßÄê
+		// テーブルの色設定
 		$this->setTableColor();
-		// ¥Õ¥©¥ó¥È¥µ¥¤¥º¤ÎÀßÄê
+		// フォントサイズの設定
 		$this->fontsize = $fontsize;
-		// ¥°¥ê¥Ã¥ÉÉÁ²è¤ÎÆÃ¼ì»ØÄê
+		// グリッド描画の特殊指定
 		$this->arrLines = array();
-		// ¥Æ¡¼¥Ö¥ë¥¿¥¤¥È¥ë¤Î¥¹¥¿¥¤¥ë
+		// テーブルタイトルのスタイル
 		$this->arrHeaderColSize = array();
 		$this->arrHeaderAlign = array();
-		// ¥Æ¡¼¥Ö¥ëÊäÀµÃÍ
+		// テーブル補正値
 		$this->table_left = 0;
-		// ¥¿¥¤¥È¥ë¹Ô¤Î½ÐÎÏ
+		// タイトル行の出力
 		$this->title_enable = true;
-		// ¥°¥ê¥Ã¥É¤Î½ÐÎÏ
+		// グリッドの出力
 		$this->grid_enable = true;
 	}
 	
-	// ¥¿¥¤¥È¥ë¤ò½ÐÎÏ¤¹¤ë¤«ÈÝ¤«
+	// タイトルを出力するか否か
 	function setTitleEnable($flag) {
 		$this->title_enable = $flag;
 	}
 	
-	// ¥°¥ê¥Ã¥É¤ò½ÐÎÏ¤¹¤ë¤«ÈÝ¤«
+	// グリッドを出力するか否か
 	function setGridEnable($flag) {
 		$this->grid_enable = $flag;
@@ -74,5 +74,5 @@
 		
 		
-	// ¥­¡¼¡§¥Ö¥í¥Ã¥¯Ì¾¡¢ÃÍ¡§É½¼¨¥Æ¥­¥¹¥È¤Î¥Ï¥Ã¥·¥åÇÛÎó¤ò¥»¥Ã¥È¤¹¤ë¡£
+	// キー：ブロック名、値：表示テキストのハッシュ配列をセットする。
 	function setTextBlock($list) {
 		unset($this->arrText);
@@ -80,6 +80,6 @@
 	}
 	
-	// ¥­¡¼¡§¥Ö¥í¥Ã¥¯Ì¾¡¢ÃÍ¡§¥Õ¥¡¥¤¥ë¥Ñ¥¹¤Î¥Ï¥Ã¥·¥åÇÛÎó¤ò¥»¥Ã¥È¤¹¤ë¡£
-	// ¢¨¥Ñ¥¹¤Ï¥É¥­¥å¥á¥ó¥È¥ë¡¼¥È°Ê²¼
+	// キー：ブロック名、値：ファイルパスのハッシュ配列をセットする。
+	// ※パスはドキュメントルート以下
 	function setImageBlock($list) {
 		unset($this->arrImage);
@@ -87,26 +87,26 @@
 	}
 	
-	// É½¼¨ÇØ·Ê¤È¤Ê¤ë¥Æ¥ó¥×¥ì¡¼¥È¥Õ¥¡¥¤¥ë¥Ñ¥¹
-	// ¢¨¥Ñ¥¹¤Ï¥É¥­¥å¥á¥ó¥È¥ë¡¼¥È°Ê²¼
+	// 表示背景となるテンプレートファイルパス
+	// ※パスはドキュメントルート以下
 	function setTemplate($pdfpath) {
 		if(file_exists($pdfpath)) {
 			$this->pdfpath = $pdfpath;
 		} else {
-			print("»ØÄê¤·¤¿PDF¥Æ¥ó¥×¥ì¡¼¥È¤ÏÂ¸ºß¤·¤Þ¤»¤ó¡§".$pdfpath);
+			print("指定したPDFテンプレートは存在しません：".$pdfpath);
 			exit;
 		}
 	}
 	
-	// ¥Æ¡¼¥Ö¥ë°ÌÃÖÊäÀµÃÍ
+	// テーブル位置補正値
 	function setTableLeft($table_left) {
 		$this->table_left = $table_left;
 	}
 	
-	// ¥°¥ê¥Ã¥ÉÉÁ²è¤ÎÆÃ¼ì»ØÄê
+	// グリッド描画の特殊指定
 	function setGridLines($list) {
 		$this->arrLines = $list;
 	}
 	
-	// ¥Æ¡¼¥Ö¥ë¥¿¥¤¥È¥ë¤Î¥¹¥¿¥¤¥ëÀßÄê
+	// テーブルタイトルのスタイル設定
 	function setTableHeaderStyle($arrColSize, $arrAlign) {
 		$this->arrHeaderColSize = $arrColSize;
@@ -114,28 +114,28 @@
 	}
 	
-	// ¥Ö¥í¥Ã¥¯¥Ç¡¼¥¿¤Î½ñ¤­¹þ¤ß(close¤¹¤ë¤È¼¡²ó¿·µ¬¥Ú¡¼¥¸)
+	// ブロックデータの書き込み(closeすると次回新規ページ)
 	function writeBlock() {
-		// ¥Æ¥ó¥×¥ì¡¼¥È¤ò»ÈÍÑ¤¹¤ë
+		// テンプレートを使用する
 		if(!file_exists($this->pdfpath)) {
 			return;
 		}
-		// ´ûÂ¸PDF¤Î¥É¥­¥å¥á¥ó¥È¤ò¼èÆÀ
+		// 既存PDFのドキュメントを取得
 		$doc = pdf_open_pdi($this->pdf, $this->pdfpath, NULL, 0 );
-		// ´ûÂ¸PDF¤Î¥É¥­¥å¥á¥ó¥È¤«¤é»ØÄê¥Ú¡¼¥¸¤ò¼èÆÀ
+		// 既存PDFのドキュメントから指定ページを取得
 		$page = pdf_open_pdi_page($this->pdf, $doc, 1, NULL );
-		// ¥Ú¡¼¥¸¤ò³«¤¯
+		// ページを開く
 		$this->openPage();
 		
-		// ´ûÂ¸PDF¤Î¥Ú¡¼¥¸¤ò³ä¤êÅö¤Æ¤ë
+		// 既存PDFのページを割り当てる
 		PDF_fit_pdi_page($this->pdf, $page, 0, 0, "adjustpage");
 		
-		// ¥Æ¥­¥¹¥È¥Ö¥í¥Ã¥¯¤Î½ñ¤­¹þ¤ß
+		// テキストブロックの書き込み
 		$max = count($this->arrText);
 		for($i = 0;$i < $max; $i++) {
 			foreach($this->arrText[$i] as $key => $val) {
 				if($val != "") {
-					// Ê¸»ú¥³¡¼¥É¤ÎÊÑ´¹
+					// 文字コードの変換
 					mb_convert_variables($this->dst_code, $this->src_code, $val);
-					// ½ñ¤­¹þ¤ß
+					// 書き込み
 					$ret = PDF_fill_textblock($this->pdf, $page, $key, $val, $this->block_option);
 				}
@@ -143,5 +143,5 @@
 		}
 		
-		// ¥¤¥á¡¼¥¸¥Ö¥í¥Ã¥¯¤Î½ñ¤­¹þ¤ß
+		// イメージブロックの書き込み
 		$max = count($this->arrImage);
 		for($i = 0;$i < $max; $i++) {
@@ -154,14 +154,14 @@
 		}
 		
-		// ³ä¤êÅö¤Æ¤¿¥Ú¡¼¥¸¤òÊÄ¤¸¤ë
+		// 割り当てたページを閉じる
 		PDF_close_pdi_page($this->pdf, $page);
-		// ³ä¤êÅö¤Æ¤¿¥É¥­¥å¥á¥ó¥È¤òÊÄ¤¸¤ë
+		// 割り当てたドキュメントを閉じる
 		PDF_close_pdi($this->pdf, $doc);
 	}
 	
-	// ¥Ú¡¼¥¸¤òÊÄ¤¸¤ë
+	// ページを閉じる
 	function closePage() {
 		if($this->page_open) {
-			// ¥Ú¡¼¥¸¤òÊÄ¤¸¤ë
+			// ページを閉じる
 			PDF_end_page_ext($this->pdf, NULL);
 			$this->page_open = false;
@@ -169,8 +169,8 @@
 	}
 	
-	// ¥Ú¡¼¥¸¤ò³«¤¯
+	// ページを開く
 	function openPage() {
 		if(!$this->page_open) {
-			// ¿·¤·¤¤¥Ú¡¼¥¸¤ò³«¤¯	
+			// 新しいページを開く	
 			PDF_begin_page_ext($this->pdf, $this->width, $this->height, NULL);
 			$this->page_open = true;
@@ -178,5 +178,5 @@
 	}
 	
-	// ¿·¤·¤¤¥Ú¡¼¥¸¤ò³«¤¯
+	// 新しいページを開く
 	function newPage() {
 		PDF_end_page_ext($this->pdf, NULL);
@@ -184,5 +184,5 @@
 	}
 	
-	// ¥¢¥¯¥Æ¥£¥Ö¤Ê¥Ú¡¼¥¸¤Î¥µ¥¤¥º¤ò¼èÆÀ¤¹¤ë
+	// アクティブなページのサイズを取得する
 	function getSize() {
 		$this->openPage();
@@ -192,10 +192,10 @@
 	}
 	
-	// ºÂÉ¸¤òÆþ¤ìÂØ¤¨¤Æ¼èÆÀ¤¹¤ë(º¸²¼(0,0)¤òº¸¾å(0,0)¤ËÊÑ´¹)
+	// 座標を入れ替えて取得する(左下(0,0)を左上(0,0)に変換)
 	function posTopDown($x, $y) {
 		$width = 0;
 		$height = 0;
 		list($width, $height) = $this->getSize();
-		// xºÂÉ¸¤Ï¡¢ÊÑ¹¹¤ÎÉ¬Í×¤Ê¤·
+		// x座標は、変更の必要なし
 		$pdf_x = $x;
 		$pdf_y = $height - $y;
@@ -203,5 +203,5 @@
 	}
 	
-	// ¥Æ¡¼¥Ö¥ë¥«¥é¡¼¤ÎÀßÄê
+	// テーブルカラーの設定
 	function setTableColor($frame_color = "000000", $title_color = "F0F0F0", $line_color = "D1DEFE", $last_color = "FDCBFE") {
 		$this->frame_color = $frame_color;
@@ -211,7 +211,7 @@
 	}
 	
-	// ¥Æ¡¼¥Ö¥ë¤Î¥°¥ê¥Ã¥É¤òÉ½¼¨¤¹¤ë¡£
+	// テーブルのグリッドを表示する。
 	function writeGrid($x, $y, $arrCol, $line_max, $last_color_flg = true) {
-		// ¥Æ¡¼¥Ö¥ëÉý
+		// テーブル幅
 		$max = count($arrCol);
 		$width = 0;
@@ -221,9 +221,9 @@
 		
 		if($this->title_enable) { 
-			// ¥¿¥¤¥È¥ë¥°¥ê¥Ã¥ÉÉÁ²è
+			// タイトルグリッド描画
 			$this->writeFrameRect($x, $y + GRID_SPACE, $width + GRID_SPACE, $this->fontsize + GRID_SPACE, $this->title_color, $this->frame_color);
 		}
 		
-		// ¥°¥ê¥Ã¥ÉÆÃ¼ì»ØÄê¤¢¤ê
+		// グリッド特殊指定あり
 		if(count($this->arrLines) > 0) {
 			$count = count($this->arrLines);
@@ -231,9 +231,9 @@
 			for($i = 0; $i < $count; $i++) {
 				if(($i % 2) != 0) {
-					// ¹Ô¤Î´Ö³Ö
+					// 行の間隔
 					$down = ($pos + 1) * $this->fontsize * 1.5;
-					// ÉÁ²è¤¹¤ë½ÄÉý¤òµá¤á¤ë
+					// 描画する縦幅を求める
 					$height = ($this->fontsize + GRID_SPACE) * $this->arrLines[$i] + ($this->arrLines[$i] - 1);
-					// ¹Ô¥°¥ê¥Ã¥ÉÉÁ²è
+					// 行グリッド描画
 					$this->writeRect($x, $y + GRID_SPACE + $down, $width + GRID_SPACE, $height, $this->line_color);
 				}
@@ -243,15 +243,15 @@
 			for($i = 1; $i <= $line_max; $i++) {
 				if(($i % 2) == 0) {
-					// ¹Ô¤Î´Ö³Ö
+					// 行の間隔
 					$down = $i * $this->fontsize * 1.5;
-					// ¹Ô¥°¥ê¥Ã¥ÉÉÁ²è
+					// 行グリッド描画
 					$this->writeRect($x, $y + GRID_SPACE + $down, $width + GRID_SPACE, $this->fontsize + GRID_SPACE, $this->line_color);
 				}
 			}
-			// ºÇ½ª¹Ô¤Ë¿§¤ò¤Ä¤±¤ë¾ì¹ç
+			// 最終行に色をつける場合
 			if($last_color_flg) {
-				// ¹Ô¤Î´Ö³Ö
+				// 行の間隔
 				$down = $line_max * $this->fontsize * 1.5;
-				// ¹Ô¥°¥ê¥Ã¥ÉÉÁ²è
+				// 行グリッド描画
 				$this->writeRect($x, $y + GRID_SPACE + $down, $width + GRID_SPACE, $this->fontsize + GRID_SPACE, $this->last_color);
 			}
@@ -259,14 +259,14 @@
 	}
 	
-	// ¥°¥ê¥Ã¥ÉÍÑ¤Î¥¢¥ó¥À¡¼¥é¥¤¥ó¤ò°ú¤¯
+	// グリッド用のアンダーラインを引く
 	/*
-		$x			:¥Æ¡¼¥Ö¥ë³«»Ï°ÌÃÖX¼´
-		$y			:¥Æ¡¼¥Ö¥ë³«»Ï°ÌÃÖY¼´
-		$arrCol		:¥«¥é¥à¥µ¥¤¥º¤ÎÇÛÎó
-		$line		:¥¢¥ó¥À¡¼¥é¥¤¥ó¤ò°ú¤¯¹Ô
-		$start_col	:¥¢¥ó¥À¡¼¥é¥¤¥ó³«»Ï¥«¥é¥à(0:³«»Ï¥«¥é¥à)
+		$x			:テーブル開始位置X軸
+		$y			:テーブル開始位置Y軸
+		$arrCol		:カラムサイズの配列
+		$line		:アンダーラインを引く行
+		$start_col	:アンダーライン開始カラム(0:開始カラム)
 	 */
 	function writeUnderLine($x, $y, $arrCol, $line, $start_col = 0) {
-		// ¥Æ¡¼¥Ö¥ëÉý
+		// テーブル幅
 		$max = count($arrCol);
 		$width = 0;
@@ -280,7 +280,7 @@
 		}
 		
-		// ¥¢¥ó¥À¡¼¥é¥¤¥ó¤ÎYºÂÉ¸¤òµá¤á¤ë
+		// アンダーラインのY座標を求める
 		$down = ($line + 1) * $this->fontsize * 1.5;
-		// ¹Ô¥°¥ê¥Ã¥ÉÉÁ²è
+		// 行グリッド描画
 		$sx = $x + $start_x + GRID_SPACE + $this->table_left;
 		$sy = $y + GRID_SPACE + $down - 1;
@@ -291,5 +291,5 @@
 	}
 	
-	// ¿¿¤óÃæ²£°ÌÃÖ¤òµá¤á¤ë
+	// 真ん中横位置を求める
 	function getXCenter($width) {
 		$page_width = 0;
@@ -300,21 +300,21 @@
 	}
 	
-	// ¼«Æ°Ãæ±û¤è¤»
+	// 自動中央よせ
 	function writeTableCenter($table, $y, $arrCol, $arrAlign, $line_max = 256, $start_no = 1, $last_color_flg = false) {
-		// ¥Æ¡¼¥Ö¥ë¥µ¥¤¥º¼èÆÀ
+		// テーブルサイズ取得
 		$width = 0;
 		foreach($arrCol as $val) {
 			$width += $val;
 		}
-		// Ãæ±û¤è¤»°ÌÃÖ¼èÆÀ
+		// 中央よせ位置取得
 		$x = $this->getXCenter($width) + $this->table_left;
 		list($ret_x, $ret_y) = $this->writeTable($table, $x, $y, $arrCol, $arrAlign, $line_max, $start_no, $last_color_flg);
-		// X¼´¤ÎºÂÉ¸¤òÊÖ¤¹
+		// X軸の座標を返す
 		return array($ret_x, $ret_y);
 	}
 	
-	// ¥Ç¡¼¥¿¤Î½ñ¤­¹þ¤ß(close¤¹¤ë¤È¼¡²ó¿·µ¬¥Ú¡¼¥¸)
-	// $start_no:1¹ÔÌÜ(¥¿¥¤¥È¥ë)¤ò0¤È¤¹¤ë¡£
-	// $line_max:¥¿¥¤¥È¥ë¤ò´Þ¤Þ¤Ê¤¤¹Ô¿ô
+	// データの書き込み(closeすると次回新規ページ)
+	// $start_no:1行目(タイトル)を0とする。
+	// $line_max:タイトルを含まない行数
 	function writeTable($table, $x, $y, $arrCol, $arrAlign, $line_max = 256, $start_no = 1, $last_color_flg = false) {
 		$this->openPage();
@@ -328,14 +328,14 @@
 		}
 		
-		// ¥¿¥¤¥È¥ëÍ­¸ú
+		// タイトル有効
 		if($this->grid_enable) {
-			// ¥°¥ê¥Ã¥É¤ÎÉÁ²è
+			// グリッドの描画
 			$this->writeGrid($x, $y, $arrCol, $line_max, $last_color_flg);
 		}
 		
-		// Unicode¥¨¥ó¥³¡¼¥Ç¥£¥ó¥°¤È¤·¤ÆUTF-8¤òÀßÄê
+		// UnicodeエンコーディングとしてUTF-8を設定
 		PDF_set_parameter($this->pdf, "textformat", "utf8");
 		
-		// ¥¿¥¤¥È¥ëÍ­¸ú
+		// タイトル有効
 		if($this->title_enable) {
 			if(count($this->arrHeaderColSize) > 0 && count($this->arrHeaderAlign) > 0 ) {
@@ -345,5 +345,5 @@
 			}	
 						
-			// ¥¿¥¤¥È¥ë¹Ô¤Î½ñ¤­¹þ¤ß
+			// タイトル行の書き込み
 			$option = "ruler {" . $linecol . "} ";
 			$option.= "tabalignment {" . $aligncol . "} ";
@@ -356,5 +356,5 @@
 		list($linecol, $aligncol, $width) = $this->getTableOption($arrCol, $arrAlign);
 		
-		// ¥Ç¡¼¥¿¹Ô¤Î½ñ¤­¹þ¤ß
+		// データ行の書き込み
 		$option = "ruler {" . $linecol . "} ";
 		$option.= "tabalignment {" . $aligncol . "} ";
@@ -376,5 +376,5 @@
 	
 	function getTableOption($arrCol, $arrAlign) {
-		// ¥«¥é¥à¥µ¥¤¥º
+		// カラムサイズ
 		$max = count($arrCol);
 		$width = 0;
@@ -384,5 +384,5 @@
 		}
 		
-		// ¥«¥é¥à°ÌÃÖ
+		// カラム位置
 		$max = count($arrAlign);
 		for($i = 0; $i < $max; $i++) {
@@ -393,5 +393,5 @@
 	}
 	
-	// ¥Æ¡¼¥Ö¥ë¥Ç¡¼¥¿¤Î½ñ¤­¹þ¤ß
+	// テーブルデータの書き込み
 	function writeTableData($table, $x, $y, $table_width, $start_no, $end_no, $option) {
 		$arrLine = split("\n", $table);
@@ -400,10 +400,10 @@
 		}
 				
-		// ¥Æ¡¼¥Ö¥ë°ÌÃÖ¤òµá¤á¤ë
+		// テーブル位置を求める
 		list($pdf_x, $pdf_y) = $this->posTopDown($x, $y);
 						
-		// ¥Æ¡¼¥Ö¥ë¹â¤µ¤òµá¤á¤ë
+		// テーブル高さを求める
 		$table_height = $this->fontsize * 1.5 * ($end_no - $start_no + 1);
-		// ¥Æ¡¼¥Ö¥ë±¦²¼¤ÎyºÂÉ¸¤òµá¤á¤ë
+		// テーブル右下のy座標を求める
 		$end_y = $pdf_y - $table_height;
 		if($end_y < 0) {
@@ -417,9 +417,9 @@
 		PDF_delete_textflow($this->pdf, $tf);
 		
-		// ¥Æ¡¼¥Ö¥ëº¸²¼ºÂÉ¸¤òÊÖ¤¹
+		// テーブル左下座標を返す
 		return array($x, $y + $table_height);		
 	}
 		
-	// ¿§¤ÎÀßÄê
+	// 色の設定
 	function setColor($rgb) {
 		if($rgb != "") {
@@ -429,5 +429,5 @@
 	}
 	
-	// Ã»·Á¤òÉÁ²è
+	// 短形を描画
 	function writeRect($x, $y, $width, $height, $rgb = "") {
 		$this->openPage();
@@ -438,5 +438,5 @@
 	}
 	
-	// ÏÈÉÕ¤ÎÃ»·Á¤òÉÁ²è
+	// 枠付の短形を描画
 	function writeFrameRect($x, $y, $width, $height, $rgb, $frgb) {
 		$this->openPage();
@@ -451,5 +451,5 @@
 	}
 	
-	// Ä¾Àþ¤òÉÁ²è
+	// 直線を描画
 	function writeLine($sx, $sy, $ex, $ey, $rgb = "000000") {
 		$this->openPage();
@@ -463,12 +463,12 @@
 	}
 		
-	// ¥Õ¥¡¥¤¥ë¤Î¥À¥¦¥ó¥í¡¼¥É
+	// ファイルのダウンロード
 	function output($filekey = "") {
 		if(isset($this->pdf)) {
-			// ¥Ú¡¼¥¸¤òÊÄ¤¸¤ë
+			// ページを閉じる
 			$this->closePage();
-			// PDF¤Î½ªÎ»
+			// PDFの終了
 			PDF_end_document($this->pdf, NULL);
-			// ½ÐÎÏÍÑ¥Ç¡¼¥¿¤Î¼èÆÀ 
+			// 出力用データの取得 
 			$buf = PDF_get_buffer($this->pdf);
 			$filename = $filekey . date("ymdHis").".pdf";
@@ -478,6 +478,6 @@
 					
 			/*
-			 * session_start()¤ò»öÁ°¤Ë¸Æ¤Ó½Ð¤·¤Æ¤¤¤ë¾ì¹ç¤Ë½ÐÎÏ¤µ¤ì¤ë°Ê²¼¤Î¥Ø¥Ã¥À¤Ï¡¢
-			 * URLÄ¾ÀÜ¸Æ¤Ó½Ð¤·»þ¤Ë¥¨¥é¡¼¤òÈ¯À¸¤µ¤»¤ë¤Î¤Ç¶õ¤Ë¤·¤Æ¤ª¤¯¡£
+			 * session_start()を事前に呼び出している場合に出力される以下のヘッダは、
+			 * URL直接呼び出し時にエラーを発生させるので空にしておく。
 			 *
 			 * Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
@@ -489,21 +489,21 @@
 			print $buf;
 			
-			// PDF²òÊü
+			// PDF解放
 			PDF_delete($this->pdf);
 		} else {
-			print("PDF¤¬À¸À®¤µ¤ì¤Æ¤¤¤Þ¤»¤ó¡£");
+			print("PDFが生成されていません。");
 		}
 		exit;		
 	}
 	
-	// ¥Õ¥¡¥¤¥ë¤ÎÉ½¼¨
+	// ファイルの表示
 	function display() {
 		if(isset($this->pdf)) {
-			// ¥Ú¡¼¥¸¤òÊÄ¤¸¤ë
+			// ページを閉じる
 			$this->closePage();
-			// PDF¤Î½ªÎ»
+			// PDFの終了
 			PDF_end_document($this->pdf, NULL);
 			
-			// ½ÐÎÏÍÑ¥Ç¡¼¥¿¤Î¼èÆÀ 
+			// 出力用データの取得 
 			$buf = PDF_get_buffer($this->pdf);
 			$len = strlen($buf);
@@ -513,6 +513,6 @@
 								
 			/*
-			 * session_start()¤ò»öÁ°¤Ë¸Æ¤Ó½Ð¤·¤Æ¤¤¤ë¾ì¹ç¤Ë½ÐÎÏ¤µ¤ì¤ë°Ê²¼¤Î¥Ø¥Ã¥À¤Ï¡¢
-			 * URLÄ¾ÀÜ¸Æ¤Ó½Ð¤·»þ¤Ë¥¨¥é¡¼¤òÈ¯À¸¤µ¤»¤ë¤Î¤Ç¶õ¤Ë¤·¤Æ¤ª¤¯¡£
+			 * session_start()を事前に呼び出している場合に出力される以下のヘッダは、
+			 * URL直接呼び出し時にエラーを発生させるので空にしておく。
 			 *
 			 * Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
@@ -524,8 +524,8 @@
 			print $buf;
 			
-			// PDF²òÊü
+			// PDF解放
 			PDF_delete($this->pdf);
 		} else {
-			print("PDF¤¬À¸À®¤µ¤ì¤Æ¤¤¤Þ¤»¤ó¡£");
+			print("PDFが生成されていません。");
 		}
 		exit;
