Xpdf 中文解决方案
1.下载 xpdf-chinese-simplified.tar.gz, 地址为:
解压后放到/usr/local/share/xpdf/chinese-simplified/中,并在xpdfrc中指定路径。
2.有一些字库不能识别的,比如:
Error: Unknown font tag 'F3'
请下载gkai00mp.ttf.gz,解压后将gkai00mp.ttf放在某个,并在xpdfrc中指定相应路径。
3. xpdf加入设置如下:
按照add-to-xpdfrc来修改
#----- begin Chinese Simplified support package (2004-jul-27)
cidToUnicode Adobe-GB1 /usr/local/share/xpdf/chinese-simplified/Adobe-GB1.cidToUnicode
unicodeMap ISO-2022-CN /usr/local/share/xpdf/chinese-simplified/ISO-2022-CN.unicodeMap
unicodeMap EUC-CN /usr/local/share/xpdf/chinese-simplified/EUC-CN.unicodeMap
unicodeMap GBK /usr/local/share/xpdf/chinese-simplified/GBK.unicodeMap
cMapDir Adobe-GB1 /usr/local/share/xpdf/chinese-simplified/CMap
toUnicodeDir /usr/local/share/xpdf/chinese-simplified/CMap
displayCIDFontTT Adobe-GB1 /usr/local/share/xpdf/chinese-simplified/gkai00mp.ttf
#----- end Chinese Simplified support package
//*********************************************************************/
//*********************************************************************/
下面是Readme文件,里面有详细的说明。
Xpdf: Chinese Simplified support package
========================================
Xpdf project:
2004-jul-27
If this package includes CMap files, they contain their own copyright
notices and distribution conditions. All other files in the package
are Copyright 2002-2004 Glyph & Cog, LLC, and are licensed under the
GNU General Public License (GPL), version 2.
This package provides support files needed to use the Xpdf tools with
Chinese (Simplified) PDF files.
Contents:
- Adobe-GB1 character collection support
- ISO-2022-CN encoding
- EUC-CN encoding
- GBK encoding
Place all of these files in a directory, typically:
Unix - /usr/local/share/xpdf/chinese-simplified
Win32 - C:\Program Files\xpdf\chinese-simplified
Add the contents of the "add-to-xpdfrc" file to your system-wide
xpdfrc config file, which is typically:
Unix - /usr/local/etc/xpdfrc
Win32 - C:\Program Files\xpdf\xpdfrc
Alternatively, on Unix systems you can add these lines to your
personal xpdfrc file in $HOME/.xpdfrc.
Make sure to edit the added lines to use the actual directory where
the files were installed.
To display PDF files that refer to non-embedded Chinese fonts, you
will need to install a Chinese font. Free TrueType fonts are
available:
After installing a Chinese font, add an appropriate "displayCIDFontTT"
line to your xpdfrc file (see the sample in "add-to-xpdfrc").
阅读(2723) | 评论(0) | 转发(0) |