Forum


Replies: 1   Views: 2149
Use transformdocadvhtml and transformdocadvhtmlplugin to omit elements
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 bre-europe  · 06-03-2019 - 10:27

Can transformDocAdvHTML/TransformDocAdvHTMLPlugin (or a derived and amended version of the plugin) be configured to e.g. omit comments in the word document? Or would I first have to remove the comments from the Word document and then convert that version of the Word document to HTML?

Posted by admin  · 06-03-2019 - 12:45

Hello,

There's no option to avoid transforming specific content types, only section tags can be omited.

You can remove contents such as comments from the main body using DOCXPath (https://www.phpdocx.com/api-documentation/docx-path/remove-elements-in-docx) before transforming the content.

We have moved the request to dev team to add support in the next release of phpdocx.

Regards.