diff --git a/application/default/controllers/ServiceController.php b/application/default/controllers/ServiceController.php
index c1c19b9e..de0324b5 100644
--- a/application/default/controllers/ServiceController.php
+++ b/application/default/controllers/ServiceController.php
@@ -415,7 +415,14 @@ class ServiceController extends Zend_Controller_Action
$row['rfdenom']=@$dom->getElementsByTagName('rfDenom')->item(0)->nodeValue;
$row['resolution']=@$xpath->query('//scaleDist/value/Real')->item(0)->nodeValue;
$row['resolution'].=@$dom->getElementsByTagName('uomName')->item(0)->nodeValue;
-
+ //提前对表格进行预处理
+ /*$wiki=new WikiFormat();
+ $row['description']=$wiki->parseTable($row["description"]);
+ preg_match_all('/
[\s\S]*?<\/table>/im', $row['description'],$tables);
+ foreach($tables as $k=>$table)
+ {
+ $row['description']=str_replace($tables[$k],"\n 【表格内容暂不支持,请访问网站查看,此处请忽略】\n",$row['description']);
+ }*/
$pdf=new MetadataPDF();
$pdf->metadata=$row;
$pdf->Draw();
@@ -508,7 +515,34 @@ class ServiceController extends Zend_Controller_Action
$row['rfdenom']=@$dom->getElementsByTagName('rfDenom')->item(0)->nodeValue;
$row['resolution']=@$xpath->query('//scaleDist/value/Real')->item(0)->nodeValue;
$row['resolution'].=@$dom->getElementsByTagName('uomName')->item(0)->nodeValue;
-
+ //提前对表格进行预处理
+ $wiki=new WikiFormat();
+ $row['description']=$wiki->parseTable($row["description"]);
+ preg_match_all('/[\s\S]*?<\/table>/im', $row['description'],$tables);
+ $search=array();
+ $replace=array();
+ foreach($tables as $k=>$table)
+ {
+ /*$search[]="";
+ $replace[]=''.str_repeat('',substr_count($table[0],''));
+ $search[]=" | ";
+ $replace[]="";
+ $search[]="";
+ $replace[]="";
+ $search[]="";
+ $replace[]="";
+ $search[]=" | | ";
+ $replace[]="";
+ $search[]="";
+ $replace[]="";
+ $search[]="
";
+ $replace[]="";
+ $search[]="
";
+ $replace[]="";
+ $table=str_replace($search,$replace,$table[0]);*/
+ $row['description']=str_replace($tables[$k][0],"\n 【表格内容暂不支持,请访问网站查看,此处请忽略】\n",$row['description']);
+ }
+
require_once('odtphp/library/odf.php');
$config["PATH_TO_TMP"]="/tmp/zip";
$config["ZIP_PROXY"]="ZipArchive";