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:

Leave a Reply

Your email address will not be published.