Solution for opening PDF file garbled characters using the default document viewer in centos6.4

Source: Internet
Author: User

There are two solutions for garbled blocks when you open a PDF file using the default document viewer in centos recently.

Method 1: Modify the/etc/fonts/CONF. d/49-sansserif.conf file as follows:

<? XML version = "1.0"?> <! Doctype fontconfig System "fonts. DTD"> <fontconfig> <! -- If the font still has no generic name, add sans-serif --> <match target = "pattern"> <Test qual = "all" name = "family" compare = "not_eq"> <string> sans-serif </ string> </test> <Test qual = "all" name = "family" compare = "not_eq"> <string> serif </string> </test> <Test qual = "All" name = "family" compare = "not_eq"> <string> monospace </string> </test> <edit name = "family" mode = "append_last"> <string> wenquanyi zhenghei </string> </Edit> </match> </fontconfig>

Change the string value in the sub-tag in the Edit Tag pair to wenquanyi zhenghei, and use its default document viewer to open the PDF file without garbled characters.

Method 2 install the AdobeReader_chs-8.1.7-1.i486.rpm Software Package

1. Go to the website to renew:

[Root @ localhost TMP] #
Wget http://ardownload.adobe.com/pub/adobe/reader/unix/8.x/8.1.7/chs/AdobeReader_chs-8.1.7-1.i486.rpm
(The previous step to download the AdobeReader_chs-8.1.7-1.i486.rpm binary software installation package to the/tmp directory, this can be arbitrary .)
2. Run the RPM tool to install the AdobeReader_chs-8.1.7-1.i486.rpm you just downloaded and run the rpm-IVH package name command to install it, as shown below:

[Root @ localhost TMP] # rpm-IVH AdobeReader_chs-8.1.7-1.i486.rpm
Preparing... ######################################## ### [100%]
1: adobereader_chs ####################################### #### [100%]

Then you can use the just-installed adobereader to open the PDF document. I personally prefer adobereader instead of the default installed PDF document viewer.

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.