《Xpdf-Linux安裝教程》

                                   Xpdf-Linux安裝教程



環境:CentOS5.X

插件:完整軟件安裝系統

一、下載Xpdf-linux

網址:http://www.foolabs.com/xpdf/download.html


要下載的文件:



                              
注:其中,我只使用了xpdf-bin-linux-3.03.tar,這個看你自己的系統而定。



二、安裝Xpdf-Llinux


[root@localhost ~]# mkdir -p /lcf/upan
[root@localhost ~]# mkdir -p /lcf/cdrom
[root@localhost ~]# mkdir -p /lcf/xpdf
[root@localhost ~]# mount /dev/cdrom /lcf/cdrom/
mount: block device /dev/cdrom is write-protected, mountingread-only
[root@localhost ~]# mount /dev/sdb1 /lcf/upan/
[root@localhost ~]# cd /lcf/upan/

[root@localhost upan]# cp xpdf/* ../xpdf/
[root@localhost upan]# cd ../xpdf/
[root@localhost xpdf]# ls
freetype-2.4.6.tar.bz2
xpdfbin-linux-3.03.tar.gz
xpdf-README.txt
xpdf-3.03.tar.gz
xpdf-chinese-simplified.tar.gz
[root@localhost xpdf]# tar -zxvf xpdfbin-linux-3.03.tar.gz

[root@localhost xpdf]# ls
freetype-2.4.6.tar.bz2
xpdf-3.03.tar.gz
xpdfbin-linux-3.03
xpdfbin-linux-3.03.tar.gz
xpdf-chinese-simplified.tar.gz
xpdf-README.txt
[root@localhost xpdf]# cd xpdfbin-linux-3.03
[root@localhost xpdfbin-linux-3.03]# ls
ANNOUNCE
bin32
bin64
CHANGES
COPYING
COPYING3
doc
INSTALL
README
[root@localhost xpdfbin-linux-3.03]# cat INSTALL
Xpdf - Unix binaries
====================

The Xpdf software and documentation are
copyright 1996-2003 Glyph & Cog, LLC.

Email: [email protected]
WWW: http://www.foolabs.com/xpdf/


To install this binary package:

1. Copy the executables (xpdf, pdftotext, etc.) to to/usr/local/bin.

2. Copy the man pages (*.1 and *.5) to /usr/local/man/man1 and

/usr/local/man/man5.

3. Copy the sample-xpdfrc file to /usr/local/etc/xpdfrc.
You'll

probably want to edit itscontents (as distributed, everything is

commented out) -- seexpdfrc(5) for details.

[root@localhost xpdfbin-linux-3.03]# ls
ANNOUNCE
bin32
bin64
CHANGES
COPYING
COPYING3
doc
INSTALL
README
[root@localhost xpdfbin-linux-3.03]# cd bin32/
[root@localhost bin32]# cp ./* /usr/local/bin/

[root@localhost bin32]# cd ../doc/
[root@localhost doc]# ls
pdfdetach.1
pdffonts.1
pdfp_w_picpaths.1
pdfinfo.1
pdftoppm.1
pdftops.1
pdftotext.1
sample-xpdfrc
xpdf.1
xpdfrc.5
[root@localhost doc]# mkdir -p /usr/local/man/man1
[root@localhost doc]# mkdir -p /usr/local/man/man5
[root@localhost doc]# cp *.1 /usr/local/man/man1
[root@localhost doc]# cp *.5 /usr/local/man/man5

[root@localhost doc]# ls
pdfdetach.1
pdffonts.1
pdfp_w_picpaths.1
pdfinfo.1
pdftoppm.1
pdftops.1
pdftotext.1
sample-xpdfrc
xpdf.1
xpdfrc.5
[root@localhost doc]# cp sample-xpdfrc /usr/local/etc/xpdfrc

[root@localhost xpdf]# tar -zxvf xpdf-chinese-simplified.tar.gz
[root@localhost xpdf]# cd xpdf-chinese-simplified
[root@localhost xpdf-chinese-simplified]# ls
add-to-xpdfrc
Adobe-GB1.cidToUnicode
CMap
EUC-CN.unicodeMap
GBK.unicodeMap
ISO-2022-CN.unicodeMap
README

========================================

Xpdf project: http://www.foolabs.com/xpdf/
2011-sep-02

If this package includes CMap files, they contain their owncopyright
notices and distribution conditions.
All other files in the package
are Copyright 2002-2004 Glyph & Cog, LLC, and are licensed underthe
GNU General Public License (GPL), version 2 or 3.

This package provides support files needed to use the Xpdf toolswith
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:\ProgramFiles\xpdf\chinese-simplified

Add the contents of the "add-to-xpdfrc" file to yoursystem-wide
xpdfrc config file, which is typically:


Unix -/usr/local/etc/xpdfrc

Win32 - C:\ProgramFiles\xpdf\xpdfrc

Alternatively, on Unix systems you can addthese 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:


http://ftp.gnu.org/gnu/non-gnu/chinese-fonts-truetype/gkai00mp.ttf.gz

http://ftp.gnu.org/gnu/non-gnu/chinese-fonts-truetype/gbsn00lp.ttf.gz

After installing a Chinese font, add an appropriate"fontFileCC" line
to your xpdfrc file (see the sample in "add-to-xpdfrc").

[root@localhost xpdf]# mkdir -p/usr/local/share/xpdf/chinese-simplified
[root@localhost xpdf]# cd xpdf-chinese-simplified/
[root@localhost xpdf-chinese-simplified]# ls
add-to-xpdfrc
Adobe-GB1.cidToUnicode
CMap
EUC-CN.unicodeMap
GBK.unicodeMap
ISO-2022-CN.unicodeMap
README
[root@localhost xpdf-chinese-simplified]# cp Adobe-GB1.cidToUnicodeISO-2022-CN.unicodeMap EUC-CN.unicodeMap GBK.unicodeMap/usr/local/share/xpdf/chinese-simplified/




[root@localhost xpdf]# cd freetype-2.4.6
[root@localhost freetype-2.4.6]# ls
autogen.sh
ChangeLog
ChangeLog.21
ChangeLog.23
devel
include
Jamrules
modules.cfg
README
src
vms_make.com
builds
ChangeLog.20
ChangeLog.22
configure
docs
Jamfile
Makefile
objs
README.git
version.sed

[root@localhost freetype-2.4.6]# cd docs/
[root@localhost docs]# ls
CHANGES
DEBUG
FTL.TXT
INSTALL
INSTALL.CROSS
INSTALL.MAC
INSTALL.VMS
MAKEPP
raster.txt
release
UPGRADE.UNIX
CUSTOMIZE
formats.txt
GPLv2.TXT
INSTALL.ANY
INSTALL.GNU
INSTALL.UNIX
LICENSE.TXT
PROBLEMS
reference
TODO
VERSION.DLL
[root@localhost docs]# vim INSTALL

I. Normal installation and upgrades
===================================


1. Unix Systems (includingMac OS X, Cygwin, and MSys on Windows)


Please read *both*`UPGRADE.UNIX' and `INSTALL.UNIX' to install or

upgrade FreeType
2 on
aUnix system.
Note that you
*need* GNU

Make for automaticcompilation,
since other make toolswon't work

(this includes BSD Make).


GNU Make VERSION 3.80 ORNEWER IS NEEDED!



2. On VMS with the `mms'build tool


See `INSTALL.VMS' forinstallation instructions on this platform.



3. Other systems using GNUMake


On non-Unixplatforms,
it is possible to build
the library using

GNU Make
utility.
Note that
*NO OTHER MAKETOOL
WILL WORK*[1]!

This
methods supports
several
compilers on
Windows, OS/2,
and

BeOS, including MinGW,Visual C++, Borland C++, and more.


Instructions are providedin the file `INSTALL.GNU'.



4. With an IDE Project File(e.g., for Visual Studio or CodeWarrior)


We provide a
small number of `project files'
for various IDEs to

automatically build
the library as
well.
Note that
these files

are
not supported
and only
sporadicallymaintained
by FreeType

developers, so don'texpect them to work in each release.


To find them, have a
look at the content of the`builds/<system>'

directory, where<system> stands for your OS or environment.



5. From you own IDE, or ownMakefiles


If
you
want
to
create
your
own
project
file,
follow
the

instructions
given
in
the
`INSTALL.ANY'
document
of
this

directory.


II. Custom builds of the library
================================


Customizing thecompilation
of FreeType is easy,and
allows you to

select only the componentsof
the font engine that you really need.

For more details read thefile `CUSTOMIZE'.


----------------------------------------------------------------------

[1] make++, a make tool written in Perl, has sufficient support ofGNU

make extensions to buildFreeType.
See


http://makepp.sourceforge.net


for more information; youneed version 1.19 or newer, and you must

pass option `--norc-substitution'.

----------------------------------------------------------------------

Copyright
2000, 2001, 2002,2003, 2004, 2005, 2006, 2007, 2008, 2010
by David Turner, Robert Wilhelm, and Werner Lemberg.

This
file is
part of
the FreeType
project, and
may only
be used,
modified,
anddistributed
under the
terms of
the
FreeType project
license,
LICENSE.TXT.
By
continuing to
use, modify,
or distribute
this file you
indicate thatyou have read
the license and understand
and accept it fully.


三、注意事項

1)在安裝過程中如果提示缺少libxp.so.6,可以去安裝相應的rpm包,查看如果有/usr/lib/libXp.so.6,那麼就是libxp.so.6安裝完畢。
2)其實可以使用CenOS中自帶的KPDF已經很好使用。
3)我所給的是純過程和相應的需要查閱的依據手冊,請根據自己的需要來選擇安裝過程。

4)最後如果有亂碼等情況,可以安裝其他截圖中的相應的中文編碼的安裝等。


                                                                                                                l_king_lich                                                               
                                       轉載請註明出處
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章