Forum


Replies: 2   Views: 667
Add headings (titles in html) in word document keeping document styles for these titles ?
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 grizzlydev  · 26-10-2022 - 13:33

I'm currently using the function replaceVariableByHTML in order to import html code in my word document.

I would like to add titles as <h1>...</h1>, <h2>...</h2> without any style. But i want them to be added with the document style for the titles h1, h2 ...

The problem is that there are insert with the standard style, not as titles.

I tried many things, I don't know if it's possible or not ?

Thanks for any help.