module
Version:
v0.0.3
Opens a new window with list of versions in this module.
Published: Jun 20, 2023
License: CC0-1.0
Opens a new window with license information.
README
¶
go-html2image
Image generator from HTML source. It works only on linux and macOS. Must be adjusted to work on Windows.
Installation
go get github.com/pericles-luz/go-html2image
It's necessary to install wkhtmltoimage on your system.
sudo apt-get update
sudo apt-get -y install xfonts-75dpi xfonts-base
curl --silent --show-error --location --max-redirs 3 --fail --retry 3 --output wkhtmltopdf-linux-amd64.deb https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6-1/wkhtmltox_0.12.6-1.jammy_amd64.deb
sudo dpkg -i wkhtmltopdf-linux-amd64.deb
sudo ldconfig
rm wkhtmltopdf-linux-amd64.deb
Directories
¶
pkg
|
|
|
|
|
Click to show internal directories.
Click to hide internal directories.