Forum


Replies: 6   Views: 2253
Get the image size of an image placeholder when using createdocxfromtemplate
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 admin  · 20-06-2019 - 08:09

Hello,

We have tested the following samples available in phpdocx 8.2:

· examples/indexer/sample_1.php

· examples/DocxPath/getDocxPathQueryInfo/sample_1.php

And both are working perfectly. The first one return images with their sizes, and the second one returns this output:

array(3) {
  ["elements"]=>
  object(DOMNodeList)#22 (1) {
    ["length"]=>
    int(2)
  }
  ["length"]=>
  int(2)
  ["query"]=>
  string(17) "//w:body/w:p[1=1]"
}

The elements key returns a DOMNodeList with the information of the elements.

Please test both included examples.

Regards.