Rails: Error running wkhtmltopdf — (error while loading shared libraries)

前端 未结 11 1574
一向
一向 2021-02-04 23:12

When my app runs (or when I run from commandline) the wkhtmltopdf command I get the following error: (showing it from command line)

#> wkhtmltopdf 
wkhtmltopd         


        
11条回答
  •  夕颜
    夕颜 (楼主)
    2021-02-04 23:49

    sudo apt-get install xvfb

    to install the dependency package.

    Update the node-modules wkhtmltopdf index.js

    wkhtmltopdf.command = 'wkhtmltopdf'; to 'wkhtmltopdf.command = 'xvfb-run wkhtmltopdf';'

提交回复
热议问题