Closed (outdated)
Project:
File Framework
Version:
6.x-1.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
25 Mar 2011 at 10:54 UTC
Updated:
30 Apr 2017 at 06:12 UTC
Jump to comment: Most recent
Comments
Comment #1
ZyanKLee commentedIt does indeed:
- use dev versions of bitcache, ff and rdf
- install libreoffice
- use jodconverter 3.x.x from http://code.google.com/p/jodconverter/
- change the -f parameter in the converters list to -o
i.e.:
{localhost:8100}{mv} "[in_file]" "[in_file].doc"; {java} -jar {{/opt/jodconverter/jodconverter.jar}} -o pdf "[in_file].doc"; {mv} "[in_file].doc" "[in_file]"; {mv} "[in_file].pdf" "[out_file]"Comment #2
jvieille commentedJust need to be included in the documentation.
Thanks!
Comment #3
johanneshahn commentedadded to Mdoule Description page.
added a FURTHER INFORMATION section in README.txt for issues like that
Comment #4
jvieille commentedadded a FURTHER INFORMATION section in README.txt for issues like thatwhat I found in README.txt is
Looks like a circular definition, not really useful.
Apart from the fact that OpenOffice changes hands and becomes a unrecommended choice, Libreoffice is known to much better handle file conversion than Openoffice.
I actually often observe erratic conversion : need to re-run conversion, reload files, clear failed conversion... Uploading more than one file at a time generally result in failed conversion. Maybe Libreoffice would improve that?
How one can practically switch from Openoffice to Libreoffice?
Thanks
Comment #5
andrés chandía commentedI would also want to change from jodconverter to pyodconverter
but I cannot succeed yet:
j-command:
{localhost:8100}{mv} "[in_file]" "[in_file].doc"; {java} -jar {{/opt/jodconverter/lib/jodconverter-cli.jar}} -o pdf "[in_file].doc"; {mv} "[in_file].doc" "[in_file]"; {mv} "[in_file].pdf" "[out_file]"p-command:
{localhost:2002}{mv} "[in_file]" "[in_file].doc"; {python} {{/opt/pyodconverter/DocumentConverter.py}} "[in_file].doc"; {mv} "[in_file].doc" "[in_file]"; {mv} "[in_file].pdf" "[out_file]"By command line I did it this way and it worked (yes, I had to change the libreoffice port to 2002 otherwise next command don't work):
python DocumentConverter.py file.doc file.pdfSo my question is what would be the right syntax where it says p-commad, I mean at the "Mime Converters" settings?
Thanks again for your help.
Comment #6
andrés chandía commentedjust in case that you want to know why I'm trying to change the jodconverter to pyodconverter, here is the answer:
Comment #7
andrés chandía commentedweird thing is that by command line jodconverter works with libreoffice:
java -jar /opt/jodconverter/lib/jodconverter-cli.jar file.doc file.pdfbut command with -o options says this:
java -jar /opt/jodconverter/lib/jodconverter-cli.jar -o pdf file.docComment #8
jvieille commentedWhat is the rational for changing jodconverter to pyodconverter?
is the later dedicated to Libreoffice?
Thank you for grasping this issue
Comment #9
andrés chandía commentedAt the FF front page it says:
, and in that page it says:
So I decided to give it a try due to the fact that when I changed from openoffice to libreoffice conversions stoped to work properly
Comment #10
andrés chandía commentedI have restored the values to default in ..admin/settings/file/convert/converter and all worked well with jodconverter, I've prevously cheked this:
that means that the recomendation that appears at the begining of this thread is deprecated:
so, don't do it....
Comment #11
jvieille commentedI confirm that Libreoffice works with FF without any change.
Just take care of the proper path installation for Jodconverter.
However, it needs some attention to properly run Libreoffice Headless.
Because no doc is available for this module and external pages get lost with time, here is the short indications for installing the libreoffice stuff ((Ubuntu 12.04 LTS):
Install fileinfo if your system has not yet it already (Note : I did not need that, it is in PHP 5.3)
apt-get install python-software-properties
add-apt-repository ppa:guilhem-fr/swftools
apt-get update
apt-get install swftools
apt-get install unrtf poppler-utils catdoc
add-apt-repository ppa:libreoffice/libreoffice-4-2
apt-get update
apt-get install libreoffice
apt-get install libreoffice-common
mkdir /jodconverter
cd /jodconverter
wget http://sourceforge.net/projects/jodconverter/files/JODConverter/2.2.2/jo...
unzip jodconverter-2.2.2.zip
add-apt-repository ppa:jon-severinsson/ffmpeg && sudo apt-get update -qq
apt-get install ffmpeg
apt-get install catdoc
apt-get install unrtf
apt-get install pdftotext
apt-get insta pstotext
apt-get install poppler-utils
apt-get install tesseract-ocr
apt-get install convert
apt-get install imagemagick
ghostscript was already ther or installed in the process
This is the script called "libreoffice-server-headless-lsb-initscript" that works for me
You'll need to enable this script as a service - see ubuntu documentation.
Then type
service libreoffice-server-headless-lsb-initscript start
Look at your server if libroffice is runnin.
Check at the next reboot if it still runs
Comment #12
gobinathmClosing the issue. It was inactive for a long time & it's related to a Drupal Version which is not supported anymore