Forum


Replies: 6   Views: 672
Get <w:lastrenderedpagebreak/>, <w:tab/>,<w:t xml:space="preserve">
Topic closed:
Please note this is an old forum thread. Information in this post may be out-to-date and/or erroneous.
Every phpdocx version includes new features and improvements. Previously unsupported features may have been added to newer releases, or past issues may have been corrected.
We encourage you to download the current phpdocx version and check the Documentation available.

Posted by phosira  · 16-11-2022 - 13:54

  $docx = new CreateDocxFromTemplate('wordUpload/0hwkiexKKE22-00723_up.docx');
  $asd = array(
    'type' => 'paragraph',
    'contains' => '上記回動軸ã¯ã€ä¸Šè¨˜å…‰è»¸ã¨ã­ã˜ã‚Œã®é–¢ä¿‚ã«ã‚ã‚‹ã€å…‰å­¦ç³»ã€‚'
  );
  $queryInfo = $docx->getDocxPathQueryInfo($asd);

  foreach ($queryInfo['elements'] as $element) {
    $attributes = $element->attributes;
    if(!is_null($attributes))
    {
        foreach ($attributes as $index=>$attr)
        {
            echo $attr->name."=\"".$attr->value."\"";
        }
      }
    }

paraId="2C1EECD0"textId="77777777"rsidR="004F0C7A"rsidRPr="004F0C7A"rsidRDefault="004F0C7A"rsidP="004F0C7A"

i only get that.

 <w:p w14:paraId="2C1EECD0" w14:textId="77777777" w:rsidR="004F0C7A" w:rsidRPr="004F0C7A" w:rsidRDefault="004F0C7A" w:rsidP="004F0C7A">
      <w:r w:rsidRPr="004F0C7A">
        <w:tab/>
      </w:r>
      <w:r w:rsidRPr="004F0C7A">
        <w:t>上記回動軸ã¯ã€ä¸Šè¨˜å…‰è»¸ã¨ã­ã˜ã‚Œã®é–¢ä¿‚ã«ã‚ã‚‹ã€å…‰å­¦ç³»ã€‚</w:t>
      </w:r>
    </w:p>

i want to get if this sentence has <w:lastRenderedPageBreak/>, <w:tab/>,<w:t xml:space="preserve">;

how can i?