返回 首页

convert excel to pdf on ubuntu server use shell


You could convert everything to pdf first using:

  1. Install dependency and font
apt-get --no-install-recommends install libreoffice 
apt-get -y install fontconfig xfonts-utils
apt-get install ttf-wqy-microhei  # Chinese Font
  1. Convert use shell
libreoffice --headless --invisible --convert-to pdf *.libreofficeextension

If Chinese characters are not displayed properly, please visit:

https://segmentfault.com/a/1190000010301670



评论(0)

登录