|
|
@ -39,7 +39,7 @@ class WordPHP
|
|
|
|
private $doc_xml;
|
|
|
|
private $doc_xml;
|
|
|
|
private $doc_media = array();
|
|
|
|
private $doc_media = array();
|
|
|
|
private $last = 'none';
|
|
|
|
private $last = 'none';
|
|
|
|
private $encoding = 'ISO-8859-1';
|
|
|
|
private $encoding = 'UTF-8';
|
|
|
|
private $tmpDir = 'tmp';
|
|
|
|
private $tmpDir = 'tmp';
|
|
|
|
//图片目录和前缀
|
|
|
|
//图片目录和前缀
|
|
|
|
public $img_dir = '';
|
|
|
|
public $img_dir = '';
|
|
|
@ -485,6 +485,7 @@ class WordPHP
|
|
|
|
// look for new paragraphs
|
|
|
|
// look for new paragraphs
|
|
|
|
$paragraph = new XMLReader;
|
|
|
|
$paragraph = new XMLReader;
|
|
|
|
$p = $reader->readOuterXML();
|
|
|
|
$p = $reader->readOuterXML();
|
|
|
|
|
|
|
|
//return $p;
|
|
|
|
|
|
|
|
|
|
|
|
if ($reader->nodeType == XMLREADER::ELEMENT && $reader->name === 'w:p') {
|
|
|
|
if ($reader->nodeType == XMLREADER::ELEMENT && $reader->name === 'w:p') {
|
|
|
|
// set up new instance of XMLReader for parsing paragraph independantly
|
|
|
|
// set up new instance of XMLReader for parsing paragraph independantly
|
|
|
|