Unofficial build of https://github.com/waka/sghtmltopdf. All credit and copyright goes to the author
119
This is an unofficial build.
https://github.com/waka/sghtmltopdf/issues/170#issuecomment-7169589569
sghtmltopdf is a single Linux amd64 executable that turns HTML into PDF. It is built from the waka/sghtmltopdf and does not use Chromium, WebKit, or Gecko. It is dynamically linked and needs glibc 2.31 or newer (Debian 11, RHEL 9, and newer) plus the usual libc, libm, and libgcc_s libraries.
It does not bundle fonts, fontconfig, or CA certificates. A PDF render still needs a font already installed on the machine, or a font file passed with --font.
COPY --from=mikemix/sghtmltopdf:0.8.0 --link /usr/local/bin/sghtmltopdf /usr/local/bin/sghtmltopdf
You can also copy the binary from the container and put it somewhere inside your webserver.
sghtmltopdf --version
This software is provided "AS IS", without any warranties or guarantees of any kind, express or implied.
Use of this software is entirely at your own risk. The author makes no representations or warranties regarding its functionality, reliability, security, accuracy, or suitability for any particular purpose.
The author shall not be held liable for any direct or indirect damages, data loss, system failures, security issues, or any other consequences resulting from the use, misuse, or inability to use this software.
By downloading, installing, or using this software, you acknowledge and accept these terms.
docker pull mikemix/sghtmltopdf:0.8.0