---
title: "Linux下jodconverter转换pdf中文乱码问题解决¶"
author: "pobing"
date: "2012-05-11T22:44:47Z"
tags: []
categories: ["开源软件"]
slug: "linux-jodconverter-pdf"
draft: false
lastmod: "2012-05-11T22:44:47Z"
id: 1524014
url: "https://pobing.iteye.com/blog/1524014"
---

出现乱码原因：

linux下的jre没有转化文档相应的中文字体的问题的所致。这种情况下，在linux 下新建的文档包含的中文字符不会显示乱码，windows 系统下，完全不会出现这种问题。

解决办法：

第一种：直接拷贝字体
       将Windows下的字体C:\Windows\Fonts\simsun.ttc 拷贝到 openoffice 目录：eg： /usr/lib/openoffice.org1.9.104/share/fonts/truetype/simsun.ttc

第二种：下载安装字体
       下载simhei.ttf黑体 simsun.ttc宋体
       下载地址：http://ishare.iask.sina.com.cn/f/11928407.html?retcode=0 下载完毕直接点击安装即可
       重启openoffice。