Forum


Replies: 3   Views: 2072
Get contents (with info of style)
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 IHD  · 24-01-2019 - 13:49

Hi, 

Presume there is a document like: 

 

Intro body text.

1. Heading 1
1.1 Sub-heading
    This is body text.
1.2 Another sub-heading
    This is another body text, followed by:
    (A) an item
    (b) another item

I would like to get the content in way enabling me to determine if a certain text is a heading, sub-heading, body text, list-item etc. 

(Using the Indexer, I have only managed to get a long string of all text using $output['body']['text']...)

Thanks!