convert excel to pdf on ubuntu server

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  # 中文字体
  1. convert
libreoffice --headless --invisible --convert-to pdf *.libreofficeextension

中文乱码解决

https://segmentfault.com/a/1190000010301670