Projects - Installing Pdf Reader
PDF - Portable Document Format, the most popular electronic document format. But how to read the .pdf files in GNU/Linux. Here gives the lightweight and functional way for Chinese users.
#tar xvfz xpdf-3.00-cjk.tar.gz #cd xpdf #tar xvfz xpdf-3.00.tar.gz #cd xpdf-3.00 #patch -Np1 -i ../xpdf-3.00-freetype_2.1.7_hack-1.patch #patch -Np0 -i ../xpdf-3.0-cjk-font.diff #patch -Np0 -i ../xpdf-cjk-fix.diff #cd xpdf #patch -Np0 -i ../../xpdf-3.00pl1.patch #cd .. #./configure --prefix=/usr --sysconfdir=/etc --with-freetype2-includes=/usr/include/freetype2 #make #make install
#mkdir -p /usr/share/xpdf/chinese-simplified #tar xvfz xpdf-chinese-simplified.tar.gz #mv xpdf-chinese-simplified/* /usr/share/xpdf/chinese-simplified/
#echo "xpdf*.fontList: -*-bitstream vera sans-medium-r-normal--14-*-*-*-*-*-iso8859-1;\
-misc-stkaiti-medium-r-normal--14-*-*-*-*-*-gbk-0:" >> ~/.Xresources
#xrdb -merge ~/.Xresources
fontDir /usr/share/fonts displayNamedCIDFontTT ºÚÌå /usr/share/fonts/simhei.ttf displayNamedCIDFontTT ËÎÌå /usr/share/fonts/simsun.ttf displayNamedCIDFontTT Ó×Ô² /usr/share/fonts/simyou.ttf displayNamedCIDFontTT Á¥Êé /usr/share/fonts/simli.ttf displayCIDFontTT Adobe-GB1 /usr/share/fonts/simsun.ttf
#xpdf xxx.pdf #man xpdf
#tar xvfz AdobeReader_chs-7.0.5-1.i386.tar.gz #./AdobeReader/INSTALL
#acroread xxx.pdf
1. The symbol "+" stands for adding the following lines into the file in front of "+".
2. You can modify this file according to your own fonts path and fonts you have.
3. It's very convenient for Chinese users to use the .tar.gz version of this reader.