1. Install the wkhtmltopdf package # wget https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6-1/wkhtmltox-0.12.6-1.centos7.x86_64.rpm 2. check version # wkhtmltopdf -V 3. Now link the binary file' # ln -s /usr/local/bin/wkhtmltopdf /usr/bin/wkhtmltopdf 3. To test whether the html is converted to pdf # /usr/local/bin/wkhtmltopdf http://www.google.com google.pdf Loading pages (1/6) Counting pages (2/6) Resolving links (4/6) Loading headers and footers (5/6) Printing pages … Continue reading install package “wkhtmltopdf” to convert html to pdf
Day: July 5, 2020