KnpLabs / snappy

PHP library allowing thumbnail, snapshot or PDF generation from a url or a html page. Wrapper for wkhtmltopdf/wkhtmltoimage

Home Page:https://knplabs.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

wkhtmltopdf

baiiko opened this issue · comments

Hey people,

I've a problem with your lib.
In fact, wkhtmltopdf is not supported since Alpine3.15

QtWebKit was removed due to lack of upstream support
qt5-qtwebkit, kdewebkit, wkhtmltopdf, and py3-pdfkit have been removed due to known vulnerabilities and lack of upstream support for qtwebkit. Other programs have been adjusted to use qt5-qtwebengine where appropriate. The most direct replacement for wkhtmltopdf is weasyprint, which is available in the Alpine Linux community repository. puppeteer and pandoc are also options, depending on your needs. See #12888 for more information.

Do you work for a new binary system ? like weasyprint ?

current workaround is to composer require prebuilt binariers for ubuntu and debian:
"lissonpsantos2/wkhtmltopdf-amd64": ">0.12.5",
"lissonpsantos2/wkhtmltoimage-amd64": ">0.12.5",

I think this lib must offer the developer a choice in a configuration to choose the right binaries or system to create pdf

We are currently considering a rewrite of Snappy to be able to use other backends than wkhtmltopdf. Feel free to contribute to this discussion #467 if you have any feedback or concern.

Closing this issue as this discussion in favor of #467 🙂