Forum


Replies: 1   Views: 1128
Hidden test from docx (w:vanish) is visible when converted to html or pdf
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 kateryna.kholodtsova  · 03-12-2020 - 01:09

Hi,

 

We are doing conversion from DOCX to PDF or HTML.

One of the issues we are facing is that hidden text (with v:vanish tag) is being visible in both HTML and PDF (see example XML from the document.xml below).
 

Could you please advice how this can be fixed?

This is critical for our project.

 

<w:r>
<w:rPr>
<w:rFonts w:ascii="Arial" w:hAnsi="Arial" w:eastAsia="Arial" w:cs="Arial"/>
<w:lang w:val="en-CA"/>
<w:color w:val="FF0000"/>
<w:sz w:val="20"/>
<w:szCs w:val="20"/>
<w:vanish w:val="1"/>
</w:rPr>
<w:t xml:space="preserve">
Some hidden text
</w:t>
</w:r>
 

Explanation about what is vashin and how it can be created: https://superuser.com/questions/1381737/msword-docx-wvanish