• Preview document: font issue

  • OpenKM has many interesting features, but requires some configuration process to show its full potential.
OpenKM has many interesting features, but requires some configuration process to show its full potential.
Forum rules: Please, before asking something see the documentation wiki or use the search feature of the forum. And remember we don't have a crystal ball or mental readers, so if you post about an issue tell us which OpenKM are you using and also the browser and operating system version. For more info read How to Report Bugs Effectively.
 #14076  by haluwong
 
Dear All,

Platform: ubuntu 10.04 LTS (64bits)
Office: Libreoffice 3.4

I got some problems in previewing some word document in chinese.
Some of the chinese can be displayed probably but some of them displayed as "box"
openkm preview, chinese with box
openkm preview, chinese with box
f1.png (108.39 KiB) Viewed 2451 times
I have tried to open that document in libreoffice manually and all the chinese can be displayed, also tried to export as PDF and all the chinese show well.
view in libreoffice, all chinese can be displayed properly
view in libreoffice, all chinese can be displayed properly
f3.png (75.08 KiB) Viewed 2451 times
However, through the preview in OpenKM, the pdf file output will display some font as "box". Is there some setting missed in openoffice? I have installed chinese fonts in the system.

Can anyone advice how to fix this issue?

I think it maybe the environment issue when running libreoffice in daemon mode which make some fonts cannot be exported to PDF correctly.

Thanks,
Halu
 #14087  by jllort
 
Try first converting document to pdf to ensure problem is on office conversion or is on pdf2swf, I suggest use terminal for this second test.
 #14095  by haluwong
 
Thanks for the reply,

I have tried to manually open the doc with libreoffice in the server and export as PDF. The result is correct.
However, through the openKM preview which using the same libreoffice but running daemon mode, the PDF file generated in cache/pdf is incorrect.

So, i think there maybe some different in running libreoffice in normal mode and daemon mode. Maybe the environment variable or something else. :roll:

Halu
 #14133  by pavila
 
It seems like there are missing fonts in the OpenKM server and can generate the preview properly. The preview process follow these steps:

- Convert document to PDF
- Convert PDF to SWF
- Show SWF to user

In some point, the conversion have a problem with the fonts.

About Us

OpenKM is part of the management software. A management software is a program that facilitates the accomplishment of administrative tasks. OpenKM is a document management system that allows you to manage business content and workflow in a more efficient way. Document managers guarantee data protection by establishing information security for business content.