This repo will build the wkhtmltopdf program in a docker image. You can build this image using the following docker command.
docker build --platform="linux/amd64" -t=pdfbuilder https://github.com/jackstine/html-pdf-builder.git#mainUse the following command to run the pdfbuilder image, and a mounted point to export the generated files. Here is an example.
docker run -v ./:/output pdfbuilder google.com /output/kk.pdf`The Version of Ubuntu is set so that wkhtmltopdf will work. There is a dependency in wkhtmltopdf that requires libssl1.1 which is no longer in current versions of ubtuntu.