Sorry, some follow up questions.
I sucessfully get all the styles using getWordStyles, and I also got all text content using getWordContents. But I do not understand how I will match the content with the style.
If I filter the styles using "contains" the same content could come multiplie times, so I wont know what is what then.
Example:
$referenceNode = [ 'type' => 'paragraph', 'contains' => 'test text' ]; $styles = $docx->getWordStyles($referenceNode);
"test text" might match mutliplie paragraphs.
Hoping for advice :)