Chinaunix首页 | 论坛 | 博客
  • 博客访问: 450833
  • 博文数量: 150
  • 博客积分: 2706
  • 博客等级: 少校
  • 技术积分: 1200
  • 用 户 组: 普通用户
  • 注册时间: 2009-11-09 11:41
文章分类

全部博文(150)

文章存档

2012年(7)

2011年(6)

2010年(68)

2009年(69)

我的朋友

分类:

2010-04-23 17:33:37

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").
阅读(2517) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~