java Source

            BlogJava :: 首頁 :: 聯(lián)系 :: 聚合  :: 管理
            14 Posts :: 24 Stories :: 8 Comments :: 0 Trackbacks

          1.下載XPDF和中文插件

          2.修改~/.xpdfrc
          內(nèi)容:

          #========================================================================
          #
          # System-wide xpdfrc file
          #
          # The Xpdf tools look for a config file in two places:
          # 1. ~/.xpdfrc
          # 2. /etc/xpdf/xpdfrc
          #
          # Note that if ~/.xpdfrc exists, Xpdf will NOT read the system
          # configuration file /etc/xpdf/xpdfrc. You may wish to include it
          # from your ~/.xpdfrc using:
          #    include /etc/xpdf/xpdfrc
          # and then add additional settings.
          #
          # For complete details on config file syntax and available options,
          # please see the xpdfrc(5) man page.
          #
          # http://www.foolabs.com/xpdf/
          #
          #========================================================================

          #----- display fonts

          # These map the Base-14 fonts to the Type 1 fonts that ship with
          # ghostscript (gsfonts package).

          displayFontT1 Times-Roman        /usr/share/fonts/type1/gsfonts/n021003l.pfb
          displayFontT1 Times-Italic        /usr/share/fonts/type1/gsfonts/n021023l.pfb
          displayFontT1 Times-Bold        /usr/share/fonts/type1/gsfonts/n021004l.pfb
          displayFontT1 Times-BoldItalic        /usr/share/fonts/type1/gsfonts/n021024l.pfb
          displayFontT1 Helvetica            /usr/share/fonts/type1/gsfonts/n019003l.pfb
          displayFontT1 Helvetica-Oblique        /usr/share/fonts/type1/gsfonts/n019023l.pfb
          displayFontT1 Helvetica-Bold        /usr/share/fonts/type1/gsfonts/n019004l.pfb
          displayFontT1 Helvetica-BoldOblique    /usr/share/fonts/type1/gsfonts/n019024l.pfb
          displayFontT1 Courier            /usr/share/fonts/type1/gsfonts/n022003l.pfb
          displayFontT1 Courier-Oblique        /usr/share/fonts/type1/gsfonts/n022023l.pfb
          displayFontT1 Courier-Bold        /usr/share/fonts/type1/gsfonts/n022004l.pfb
          displayFontT1 Courier-BoldOblique    /usr/share/fonts/type1/gsfonts/n022024l.pfb
          displayFontT1 Symbol            /usr/share/fonts/type1/gsfonts/s050000l.pfb
          displayFontT1 ZapfDingbats        /usr/share/fonts/type1/gsfonts/d050000l.pfb

          # If you need to display PDF files that refer to non-embedded fonts,
          # you should add one or more fontDir options to point to the
          # directories containing the font files.  Xpdf will only look at .pfa,
          # .pfb, and .ttf files in those directories (other files will simply
          # be ignored).

          #fontDir        /usr/local/fonts/bakoma

          #----- PostScript output control

          # Set the default PostScript file or command.

          psFile            "|lpr"

          # Set the default PostScript paper size -- this can be letter, legal,
          # A4, or A3.  You can also specify a paper size as width and height
          # (in points). Xpdf uses the paper size in /etc/papersize by default.

          #psPaperSize        letter

          #----- text output control

          # Choose a text encoding for copy-and-paste and for pdftotext output.
          # The Latin1, ASCII7, and UTF-8 encodings are built into Xpdf.  Other
          # encodings are available in the language support packages.

          #textEncoding        UTF-8

          # Choose the end-of-line convention for multi-line copy-and-past and
          # for pdftotext output.  The available options are unix, mac, and dos.

          #textEOL        unix

          #----- misc settings

          # Enable Type 1 font rasterizing with t1lib. Default "yes".

          #enableT1lib        no

          # Enable TrueType and Type 1 font rasterizing with FreeType. Default "yes".

          #enableFreeType        no

          # Enable anti-aliasing of fonts. Default "yes".

          #antialias        no

          # Set the command used to run a web browser when a URL hyperlink is
          # clicked.

          urlCommand    "sensible-browser '%s'"

          # Include the language configuration file list generated by update-xpdfrc
          include /etc/xpdf/includes

          posted on 2005-11-15 14:29 JustinLei 閱讀(875) 評(píng)論(1)  編輯  收藏 所屬分類: Linux

          Feedback

          # re: 讓kpdf支持中文 2006-03-14 17:43 panda
          是我要找的內(nèi)容  回復(fù)  更多評(píng)論
            

          主站蜘蛛池模板: 樟树市| 兴仁县| 都江堰市| 麻城市| 肥东县| 尚志市| 仪陇县| 阿克| 海安县| 栖霞市| 宾川县| 财经| 东城区| 延寿县| 闵行区| 杨浦区| 永济市| 敦化市| 会昌县| 天长市| 柘荣县| 长乐市| 梁山县| 黑山县| 出国| 大关县| 海安县| 刚察县| 富阳市| 乐亭县| 南溪县| 临江市| 陆丰市| 弋阳县| 凯里市| 农安县| 昭觉县| 九台市| 石城县| 纳雍县| 温宿县|