Is there a way to ignore hidden text when converting from docx to txt?

I am trying to run the command line in headless mode to convert a .docx file to txt:

soffice --headless --convert-to txt:Text somefile.docx

And it is doing a great job, however I need a way to ignore the potential hidden text in the document.

Any guidance would be appreciated.