Convert to text plugin bug?

By Carl - October 9, 2020

Hi Greg,
Thank you for finding this. I have changed the code accordingly and I will let the team know about the change.

Carl

PHP Programmer

interactivetools.com

Hi Carl,

Overall this plugin is working well for us however we are noticing that some .docx and .xlsx files are not being converted to text.

For example, when I upload .xlsx files these are never converted to text however it works for .xls files. I am also able to create and upload .docx files and these are converted to text correctly but when I use an existing .docx file from a sample file website (e.g. https://file-examples-com.github.io/uploads/2017/02/file-sample_100kB.docx) this never converts.

Are there any known issues with .xlsx and .docx file types or could there be some code that needs checking over?

Any help would be hugely appreciated.

Regards,

Greg

By Dave - October 25, 2020

Hi Greg, 

Thanks for reporting this.  We'll see if we can recreate and/or resolve this issue locally and get back to you.  

Thanks!

Dave Edis - Senior Developer
interactivetools.com

By hans - October 26, 2020

Hello Greg. 

Upon checking this issue, I realized that upgrading your version of Tika to the most recent version fixes the parsing of text for .xlsx files and .docx files that were taken from the internet. 

I have made a copy of my modified converttotext plugin folder that has been modified in order to make them work. 

https://ufile.io/kdgep1b0

Simply download the link, go to your plugins folder, and replace the "convertToText" folder with the "convertToText" folder that is the zip file in the link.

If you have any more questions, feel free to message me.

Hans

Hans Marcon
PHP Programmer (In Training)
interactivetools.com

Hans,

Thank you very much for suggesting this solution - I can confirm that it now works.

I am very grateful for your support!

Regards,

Greg

By Dave - October 27, 2020

Hi Greg, 

Ok great, glad it's working.  I've updated the plugin online here as well for anyone else who needs it: 
https://www.interactivetools.com/plugins/convert-to-text/

Thanks!

Dave Edis - Senior Developer
interactivetools.com