Closed toknT closed 2 weeks ago
Hey it's a really enemcy problem , no any update?...May be libreoffice has too many bus when reading the file uploaded by users wrtite in Chinese.
Maybe you add a timeout and kill the process. You could implement it and send a merge request, I will review and publish it if it looks good to me :)
@elwerene Sorry , it already existed a npm package libreoffice-file-converter
has timeout feat . And I am an amateur nodejser/backend developer. Have no skill to do a pr ,my main job is mobile app developer may need more learning to do that😅.
So I chose to use libreoffice-file-converter
.
In my case I need convert docx file to html and display it to user.
One of my user upload a file that's even unable to convert to html from server with command
libreoffice --convert-to html error.docx
I run these code on server , but it not throw any exception when process the unconverable file.