RefundPlugin icon indicating copy to clipboard operation
RefundPlugin copied to clipboard

Installing refund require wkhtmltopdf

Open disvroian opened this issue 4 years ago • 2 comments

I installed the plugin which look great but why is it mandatory to install wkhtmlpdf. Actually apt get install wkhtmlpdf require GNOME which is something i can t understand

image

Why can't we use an easy https://github.com/spipu/html2pdf https://github.com/dompdf/dompdf

Or even let people decide and make it not mandatory.

disvroian avatar Aug 06 '21 10:08 disvroian

While waiting. To avoid you can install sudo apt-get install fontconfig xfonts-75dpi xfonts-base And after install the locally the package. This avoid the full install For the latest version of wkhtmltopdf need to add knp_snappy: pdf: enabled: true binary: '%env(WKHTMLTOPDF_PATH)%' options: allow: '%kernel.project_dir%'

disvroian avatar Aug 06 '21 15:08 disvroian

Hello @disvroian! Sorry for the very late response, wkhtmltopdf is mandatory in this plugin as it is the only library for generating PDF files that is needed to meet the functionality expectations. In the nearest future, there is no plan to extend the possibility to decide which library can be used, but I encourage you to make a PR with such a contribution.

GSadee avatar Oct 11 '21 11:10 GSadee