Forum


Replies: 5   Views: 3379
Toc: not working links to chapters
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 TieBreakTech  · 07-06-2018 - 09:45

Hi,

we are using embedHTML to convert an html text into a docx document and our goal is to create a table of content as well. We started by adding several anchors such as <a href="#abc">abc</a> and then the relative chapter with their header, like <h4 id="abc">abc</h4>

If we open the docx file with openoffice the summary works fine and we can jump from the summary to the chapters.
If we open it in microsoft word instead we found that it prepend a relative path to the anchor path and 
the jump operation does not work. The table of content appears to not be created as well.

The solution suggested by Microsoft Support does not seem to have any effect.

Thanks