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.