Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Ubuntu installs libreoffice for Word to pdf, and solves the problem of Chinese garbled

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

Ubuntu installs libreoffice for Word to pdf, and solves the problem of Chinese garbled

# install libreoffice:

Download the installation package

Install sudo dpkg-I. / LibreOffice_6.2.8.2_Linux_x86-64_deb/DEBS/*.deb / * install all deb packages of the main installer * / sudo dpkg-I. / LibreOffice_6.2.8.2_Linux_x86-64_deb_langpack_zh-CN/DEBS/*.deb / * install all deb packages in the Chinese language package * / report when you start the conversion after installation Lack of various dependencies (install the following package to install all the dependencies available) sudo apt-get install libreoffice-pdfimport and then run the conversion script (convert the word file to pdf) libreoffice6.2-convert-to pdf:writer_pdf_Export 1571131529.docx-outdir / home/xaohuihui convert Chinese garbled

The .libreoffice folder will not be created under .config until the previous step is run, and the resulting folder can just solve the problem of Chinese garbled.

The most perfect solution: to solve the problem of transcoding Chinese garbled code: http://www.yanglajiao.com/article/qq_30554229/80093894

Linux is multi-user, but our own computers usually use only one ordinary user, so, and we just need to make the font work for ourselves, so as not to break the font settings of the system.

Open the home folder

Press Ctrl+H to show hidden folders and open .libreoffice (also in .confing / libreoffice, such as ubuntu 12.04)

Enter 4/user in turn, and create a new folder fonts

Then copy the fonts from the Fonts in the download package to the fonts folder.

Also, libreoffice does not support concurrency, so there will be a problem when two files are converted at the same time, so you need to lock the file conversion. I am locking a file now. Processing completed release lock

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report