[Perfect solution] PDF Chinese Garbled text (xpdf; evince) -- Linux
Source: Internet
Author: User
[Perfect solution] PDF Chinese Garbled text (xpdf; evince) -- Linux -- general Linux technology-Linux technology and application information. For details, see the following. Author: pangu
When talking about pdf Chinese garbled characters, I believe it is a heart disease for all Chinese linux users. I installed linux twice in the past, but it was not a perfect solution! This time, I plan to spend half a day solving this thorny problem.
At the beginning, I downloaded a lot of linux books. Of course, I used evince's default file reader. More than half of the results were garbled! I searched for many methods on the Internet. In summary, there are only two methods.
I. Install patches on the basis of evince. There are two methods to install the patches:
1. Patch Chinese
Step 1:. sudo apt-get install evince upgrade
Sudo apt-get install cmap-adobe-gb1 gsfonts-x11 xpdf-chinese-simplified xpdf-common
Step 2: Upgrade the Chinese package
Chinese font: The following command is a Chinese font in windows (or downloaded online). Connect to/usr/share/fonts and change the suffix "ttc" to "ttf ".
Sudo ln-s/media/sda1/WINDOWS/Fonts/simsun. ttc simsun. ttc simsun. ttf
Step 3: Open/etc/xpdf/xpdfrc-chinese-simplefied
Change displayCIDFontTT
DisplayCIDFontTT Adobe-GB1/usr/share/fonts/simsun. ttf
2. Install poppler-data
There are three installation methods:
1. Directly install poppler-data on the terminal sudo apt-get (if it is a version later than 8.04, it will be available in new IDE. install it );
2, download the source package http://poppler.freedesktop.org/poppler-0.8.5.tar.gz (the latest version) install {1, unzip to the tmp directory; 2, in the directory to open the terminal (another right-click menu to add terminal items: sudo apt-get install nautilus-open-terminal; 3 ,. /configure; 4. make; 5. make install ;}
3. sudo wget http://poppler.freedesktop.org/poppler-data-0.8.5.tar.gz
Sudo tar xzvf poppler-data-0.8.5tar.gz & cd poppler-data-0.8.5
Sudo make install datadir =/usr/share
2. Find its derivative substitute (I call it an escape method)
As we all know, the reason why linux is so prosperous is that there are many alternatives to each other's versions, which are an important reason for its popularity, that is, the significance of open source!
1. kpdf, (click "application"> "Add/Delete"> "kpdf" to install kpdf)
2. xpdf (available for terminals, which can be searched and installed in New Delhi. When I select xpdf, xpdf-reader, and xpdf-utils)
3. Adobe Reader for Linux 8.1.2
Http://ardownload.adobe.com/pub/... 1.2-1.i486.tar.bz2 (download, the above poppler installation method 2 to install;
I tried all the methods before, and I was not allowed to do anything!
I chose the escape method. Fortunately, the problem was solved. I installed xpdf because it was relatively small. Even if kpdf was installed, the problem may not be solved. I already know how to solve it! Adobe is also relatively large, so the multi-function, that is, I am not using much in windows, and the startup is slow, consuming memory. Fortunately, the problem is well solved!
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service