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

johanneshahn’s picture

hi 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

andrés chandía’s picture

Ok, 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.

andrés chandía’s picture

I 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.

johanneshahn’s picture

hi 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?

{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]"
  1. remove {localhost:8100} and save settings -> check again
  2. if it does not help start open office. try this terminal command /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 office this gives u something like
    .1 705960 96968 pts/0    Sl   19:35  13:03 /usr/lib/openoffice/program/soffice.bin -headless -accept=socket,host=127.0.0.1,port=8100 -splash-pipe=5
    
  3. if it does not help check if jodconverter is in the right dir with -> /opt/jodconverter/lib/jodconverter-cli.jar if 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.jar
  4. try to convert a demo file with command 'java -jar /opt/jodconverter/lib/jodconverter-cli.jar -f pdf test.doc' u have to be in the dir where test.doc is
andrés chandía’s picture

Ok, 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.jar

and that solved the problem.

johanneshahn’s picture

Status: Active » Closed (fixed)

seems to be fixed :)