Wednesday, March 2, 2011

Using jodconverter for converting odt to pdf in a Centos linux

Assuming we have an OpenOffice headless installation, in order to convert any doc to PDF format we need to tell Centos about the used fonts.

Based in http://www.centos.org/docs/5/html/Deployment_Guide-en-US/s1-x-fonts.html we need:

1. To copy all the used fonts in /usr/share/fonts, preferably using many directories
2. To run
fc-cache dir
for every font directory

Then you can simply restart OpenOffice Headless service