Solution for garbled pdf software with poppler as the backend (okular, epdfview, evince ...)

Source: Internet
Author: User
Note: Because the pdf functions of okular, epdfview, and evince are provided by the poppler branch of xpdf, these software is called by poppler here. I have not tested it in kpdf, because I am using okular directly now. Poppler official website: http://poppler.free?top.org/and very... note: Because the pdf functions of okular, epdfview, and evince are provided by the poppler branch of xpdf, these software is called by poppler here. I have not tested it in kpdf, because I am using okular directly now.
Poppler official website: http://poppler.freedesktop.org/
 
Like many friends, I do not want to see the garbled characters of poppler.
Later, I saw the software dependency and realized that okular and so on are based on poppler as the backend.
Official poppler descriptions are as follows:
 
Http://freedesktop.org/wiki/Software/poppler
 
QUOTE:
Suggested Fontconfig font substitutions
Poppler is using fontconfig to do the font searching on the system for fonts that are not embedded into the pdf files. this is a list of recommended font substitutions that distributions/users shoshould have in their fontconfig configuration
That is to say, the poppler reads the font from the fontconfig configuration file to replace the font in the pdf. Therefore, we only need to replace the font. Similar to openoffice, openoffice accepts fontconfig in addition to its own font substitution.
 
If you have installed a lot of windows fonts, you will not be garbled. If you haven't installed it, you have to replace the font. The previous official wiki provides an alternative. of course, the premise is that you have installed poppler-data. Otherwise, Chinese characters cannot be displayed.
 
The following is my configuration file.
 
Specify one or more fonts for all Chinese characters
 
CODE:


Zh


Proportional


False


Ar pl ShanHeiSun Uni


This parameter is specified separately when the body is used.
 
CODE:


KaiTi_GB2312
STXingkai
STXinwei


Ar pl ZenKai Uni


Of course, I also changed my Chinese font to a beautiful English font.
 
Correction: kpdf is not based on poppler.
Related Article

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.