linux下openoffice word文件转PDF中文乱码问题

用vim /etc/fonts/fonts.conf,可以看到系统字体文件在/usr/share/fonts,将windows系统字体文件连接到此目录下
ln -s /usr/local/fonts fonts
然后更新缓存:fc-cache
重启openoffice:
 /opt/openoffice4/program/soffice -headless -accept="socket,host=127.0.0.1,port=8100;urp;" -nofirststartwizard &
再转换,字体终于显示正确,不再有乱码

猜你喜欢

转载自himo-zhang.iteye.com/blog/2229147