Closed (fixed)
Project:
File Framework
Version:
6.x-1.x-dev
Component:
User interface
Priority:
Major
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
19 Mar 2012 at 18:05 UTC
Updated:
3 Apr 2012 at 18:07 UTC
There is no rush for this one, you can answer it later, for the others to get your support also.
I've realised doing the stuff of videos that all the commands involving java are not installed, for ex.:
{localhost:8100}{mv} "[in_file]" "[in_file].doc"; {java} -jar {{/opt/jodconverter/lib/jodconverter-cli.jar}} -f pdf "[in_file].doc"; {mv} "[in_file].doc" "[in_file]"; {mv} "[in_file].pdf" "[out_file]"
{localhost:8100}{mv} "[in_file]" "[in_file].doc"; {java} -jar {{/opt/jodconverter/lib/jodconverter-cli.jar}} -f odt "[in_file].doc"; {mv} "[in_file].doc" "[in_file]"; {mv} "[in_file].odt" "[out_file]"
etc.
So, what sould I do for these ones to work?
thanks again
Comments
Comment #1
johanneshahn commentedhi Andrés,
u need at least some skills to install openoffice and jod converter to run convert .doc files into pdfs.
here is a nice tutorial to set it up http://justin-hopkins.com/blog/2008/12/02/how-to-setting-up-drupal-file-...
just read the "JodConverter" and "Run OpenOffice as a service" parts.
after u installed and run openoffice via terminal u can go back to fileframework
an check if its working.
iam currently coding a system check page which does some basic checks for
installed services for fileframwork but that's a bigger part. #1369828: adding system check page
Comment #2
andrés chandía commentedOk, I got OpenOffice up and running, and jodconverter at its place, but still java applets appear as not installed,
www-data 3898 0.0 2.1 447348 44544 ? Sl 13:03 0:00 /usr/lib/openoffice/program/soffice.bin -headless -accept=socket,host=127.0.0.1,port=8100;urp -nofirststartwizard -splash-pipe=5
8100/tcp open unknown
9102/tcp open jetdirect
Do you remember one of the first problems you helped me to solve, the impossibility of uploading files... well it's back,
and I've tried all (all the directions you gave me that time) but no way of solving it, I still got the message:
File 123.txt was scanned by the antivirus software. No threats were found.
Error saving file 123.txt. Please, contact site administrator.
Fitxer 123.txt ha estat creat.
As you can see, antivirus is working, and the node is created, but no uploading of files, no matter what kind of file, image, audio, video, or just text like the one of the error.
Comment #3
andrés chandía commentedI don't know if this helps, but also I got this when at the File management, I activate this module:
File RDF 6.x-1.3+8-dev Custom Modul for implements RDF Support
warning: Illegal offset type in isset or empty in .../includes/bootstrap.inc on line 997.
warning: Illegal offset type in .../includes/bootstrap.inc on line 998.
warning: Illegal offset type in .../includes/bootstrap.inc on line 1002.
Comment #4
johanneshahn commentedhi andrés,
first of all, i think we have to split that2 problems
can u post a new issue with "uploading files does not work with
enabled antivirus module ".
we gonna solve your problem "Java applets not converting"
in this thread.
ok u installed openoffice and jodconverter
and u can not activate it under settings/file/convert/converter .
look at
application/msword
application/pdf
the text in column "Conversion utilities" looks like that?
/usr/lib/openoffice/program/soffice.bin -headless -accept="socket,host=127.0.0.1,port=8100;urp" -nofirststartwizard-> check if office runs with
ps aux | grep officethis gives u something like/opt/jodconverter/lib/jodconverter-cli.jarif it does not return "No such file or directory" its ok else try ->locate jodconverter. sometimes the jar file has not the required name jodconverter-cli.jarjava -jar /opt/jodconverter/lib/jodconverter-cli.jar -f pdf test.doc' u have to be in the dir where test.doc isComment #5
andrés chandía commentedOk, the problem was that my jodconverter file was called jodconverter-cli-2.2.2.jar instead of jodconverter-cli.jar, so I did:
ln -s jodconverter-cli-2.2.2.jar jodconverter-cli.jarand that solved the problem.
Comment #6
johanneshahn commentedseems to be fixed :)