Page 1 of 1

OpenKM Preview Problem ,Chinese characters garbled

PostPosted:Mon Jun 18, 2012 9:38 am
by kinghuangworld
Dear Sir,

I am getting the Preview Problem,.doc and .xls files Can show letters and numbers, but Chinese character display box . Chinese character display in pdf filer ok, large pdf documents can not preview.


My configuration is:

OpemKM 5.1.9 working on centos 6.2 using openoffice 3.4 with Chinese language pack as the previewer.
Code: Select all
system.ghostscript.ps2pdf String /usr/local/bin/ps2pdf -T 9 -f ${fileIn} -o ${fileOut}       
system.imagemagick.convert String /usr/local/bin/convert  
system.ocr String /usr/local/bin/tesseract${fileIn} ${fileOut}       
system.openoffice.dictionary String /opt/openoffice.org/basis3.4/share/wordbook       
system.openoffice.path String /opt/openoffice.org3       
system.swftools.pdf2swf String /usr/local/bin/pdf2swf -T 9 -f ${fileIn} -o ${fileOut}

Configuration check
•system.swftools.pdf2swf
OK - /usr/local/bin/pdf2swf
•system.imagemagick.convert
OK - /usr/local/bin/convert
•system.ocr
Can't read or execute: /usr/local/bin/tesseract${fileIn} ??
•system.openoffice.path
OK - /opt/openoffice.org3/program/soffice.bin

Re: OpenKM Preview Problem ,Chinese characters garbled

PostPosted:Wed Jun 20, 2012 11:38 am
by jllort
You have installed openoffice or libreoffice with chinesse support ?

Re: OpenKM Preview Problem ,Chinese characters garbled

PostPosted:Sat Jun 23, 2012 3:51 pm
by kinghuangworld
Thank you, I add Chinese fonts in openoffice font folder then the office file preview ok .but txt file is still garbled .does the txt file is also convert pdf by openoffice too ?

Re: OpenKM Preview Problem ,Chinese characters garbled

PostPosted:Sun Jun 24, 2012 11:01 am
by jllort
Try txt to pdf conversion with openoffice to see if goes right, then try pdf2swf to test swf conversion ( this second from terminal ).That's the process is done by openkm and we'll see the origin of the problem.

Re: OpenKM Preview Problem ,Chinese characters garbled

PostPosted:Sun Jun 24, 2012 4:58 pm
by kinghuangworld
I Tried txt to pdf conversion with openoffice is garbled. does txt font directory not in openoffice ?

Re: OpenKM Preview Problem ,Chinese characters garbled

PostPosted:Wed Jun 27, 2012 10:58 am
by jllort
Have you installed openoffice with chinese support language pack ? try open file with openoffice directly