How to install wkhtmltopdf on a linux based (shared hosting) web server

后端 未结 11 1706
刺人心
刺人心 2020-11-30 17:58

I have tried in all ways to get wkhtmltopdf installed on our web server but unfortunately it is not getting installed. I cannot access user/bin folder as st

11条回答
  •  北海茫月
    2020-11-30 18:56

    After trying, below command work for me

    cd ~
    yum install -y xorg-x11-fonts-75dpi xorg-x11-fonts-Type1 openssl git-core fontconfig
    wget https://downloads.wkhtmltopdf.org/0.12/0.12.4/wkhtmltox-0.12.4_linux-generic-amd64.tar.xz
    tar xvf wkhtmltox-0.12.4_linux-generic-amd64.tar.xz
    mv wkhtmltox/bin/wkhtmlto* /usr/bin
    

提交回复
热议问题