537mfb has asked for the wisdom of the Perl Monks concerning the following question:
Fellow monks
I have recently been given the task of creating an online tool to compare the text on two files. Problem is that not all files will be text files - some may be docx some doc etc.
So i started my task - done everything needed for the compare of two text files (including upload to the server running the perl CGI) and all is well.
Now it's time to handle when the uploaded file is not a plain text file. And problems arise.
At first i tried running LibreOffice via open with the convert-to command line option - that works well outside CGI mode but under CGI mode i can't execute LibreOffice (due to privilege restrictions to the server i guess) - the script just dies with no error message.
Then i looked into Win32::OLE, but the server is Linux and that module is Windows only.
Then i looked into OpenOffice::UNO but i can't find any information on that for perl and i have tried it on python and same happens as with running LibreOffice - works well in normal mode but move it to CGI and loadComponentFromURL makes the script die with no message
Anyone has any other way to achieve this? is it at all possible to do? Any help would be appreciated
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Convert documents in CGI
by Corion (Patriarch) on Jun 21, 2011 at 18:44 UTC | |
by 537mfb (Initiate) on Jun 22, 2011 at 13:19 UTC | |
by 537mfb (Initiate) on Jun 24, 2011 at 09:52 UTC |