Ubuntu 9.04下PDF文件文字不正常显示不是一个方案就能解决的。
1.在新立得里安装 xpdf-chinese-simplified
2.下载安装poppler-data-0.1者过程如下:
下载poppler-data-0.1.tar.gz (也可以到官方下载,这是我随便搜的一个)
解压放置到/opt文件夹下面。
打开终端进入该目录:cd /opt/poppler-data-0.1
运行命令:sudo make install datadir=/usr/share
可以了,中文乱码问题部分解决了,但可能有方框的问题,请看下文
3.Ubuntu 9.04中PDF文档出现方框
在终端输入
sudo gedit /etc/fonts/conf.d/69-language-selector-zh-cn.conf
修改69-language-selector-zh-cn.conf文件如下:
<fontconfig>
<match target="pattern">
<test qual="any">
<string>serif</string>
</test>
<edit mode="prepend" binding="strong">
<string>DejaVu Serif</string>
<string>AR PL UMing CN</string>
<string>AR PL UKai CN</string>
<string>AR PL ZenKai Uni</string>
<string>AR PL ShanHeiSun Uni</string>
<string>Bitstream Vera Serif</string>
<string>WenQuanYi Bitmap Song</string>
</edit>
</match>
<match target="pattern">
<test qual="any">
<string>sans-serif</string>
</test>
<edit mode="prepend" binding="strong">
<string>WenQuanYi Bitmap Song</string>
<string>AR PL UMing CN</string>
<string>AR PL UKai CN</string>
<string>AR PL ZenKai Uni</string>
<string>WenQuanYi Zen Hei</string>
<string>Bitstream Vera Sans</string>
<string>AR PL ShanHeiSun Uni</string>
<string>DejaVu Sans</string>
</edit>
</match>
<match target="pattern">
<test qual="any">
<string>monospace</string>
</test>
<edit mode="prepend" binding="strong">
<string>DejaVu Sans Mono</string>
<string>Bitstream Vera Sans Mono</string>
<string>WenQuanYi Bitmap Song</string>
<string>AR PL UMing CN</string>
<string>AR PL UKai CN</string>
<string>AR PL ZenKai Uni</string>
<string>WenQuanYi Zen Hei</string>
<string>AR PL ShanHeiSun Uni</string>
</edit>
</match>
</fontconfig>