Forum


Replies: 2   Views: 435
Public function getwordcontents (array $referencenode)
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 gilggg  · 17-10-2023 - 07:59

Can I get the content from a word document with the type of content (Ex. : table, list, image and on...) ?

Can I get content of specific cell in a parent table (all content : images, tables lists and on..)?

If not, can I do it with other functons of phpdocx ?

 

Thanks

Posted by admin  · 17-10-2023 - 08:35

Hello,

You can use the following methods to get information from a DOCX:

Using DOCXPath queries with getWordContents and getDocxPathQueryInfo you can choose specific content types (tables, lists, images...). Or even use a custom XPath query to get more specific contents, for example cell contents. In the package (DOCXPath folder) you can find many samples using all DOCXPath methods.

Regards.

Posted by gilggg  · 17-10-2023 - 13:04

Thank you

It helps.