h4cc / wkhtmltopdf-amd64

wkhtmltopdf - Convert html to pdf using webkit (qtwebkit). Linux amd64 Binary.
http://wkhtmltopdf.org/
GNU Lesser General Public License v3.0
468 stars 169 forks source link

Abandoned? #43

Open Thorry84 opened 4 years ago

Thorry84 commented 4 years ago

This package seems to be abandoned, I would advise people not to use this.

Unfortunately I don't know of a good alternative to this package. A couple of people forked it, updated it and announced they would maintain their version in the future, only to promptly abandon it.

This package isn't required if you have the possibility to get wkhtmltopdf installed natively, which is the preferred solution. But you probably wouldn't be looking here if you have that option available.

If anybody has a real alternative please let me know.

bart-v commented 4 years ago

https://github.com/lifewatch/wkhtmltopdf-windows is up to date Version 0.12.6 is expected soon

nicholaszuccarelli commented 4 years ago

@bart-v That package is for Windows only.

georgearnall commented 4 years ago

really need an update for 0.12.6 asap

olsgreen commented 4 years ago

The guys over at wkhtmltox stopped (for good reason) releasing generic linux binaries after 0.12.4 and started releasing OS specific ones, thus making maintaining a package like this impossible. We target Ubuntu bionic, I maintain a dynamically linked version extracted from the xenial targeted binaries here https://packagist.org/packages/olsgreen/wkhtmltopdf-amd64.

georgearnall commented 4 years ago

Fair enough, I've just tried out your package on my bionic evironment and I get the following error: libpng12.so.0: cannot open shared object file: No such file or directory

See more:

[2020-06-30 15:24:30] laravel.ERROR: The exit status code '127' says something went wrong:
stderr: "XXX/vendor/olsgreen/wkhtmltopdf-amd64/bin/wkhtmltopdf-amd64: error while loading shared libraries: **libpng12.so.0: cannot open shared object file: No such file or directory**
"
stdout: ""
command: XXX/vendor/olsgreen/wkhtmltopdf-amd64/bin/wkhtmltopdf-amd64 --lowquality --margin-top '50' --footer-html '/tmp/knp_snappy5efb592e245a51.43881784.html' '/tmp/knp_snappy5efb592e244ca6.36246367.html' '/tmp/knp_snappy5efb592e2454e8.31311227.pdf'. {"userId":1,"exception":"[object] (RuntimeException(code: 127): The exit status code '127' says something went wrong:
stderr: \"XXX/vendor/olsgreen/wkhtmltopdf-amd64/bin/wkhtmltopdf-amd64: error while loading shared libraries: libpng12.so.0: cannot open shared object file: No such file or directory
\"
stdout: \"\"
command: XXX/vendor/olsgreen/wkhtmltopdf-amd64/bin/wkhtmltopdf-amd64 --lowquality --margin-top '50' --footer-html '/tmp/knp_snappy5efb592e245a51.43881784.html' '/tmp/knp_snappy5efb592e244ca6.36246367.html' '/tmp/knp_snappy5efb592e2454e8.31311227.pdf'. at XXX/vendor/knplabs/knp-snappy/src/Knp/Snappy/AbstractGenerator.php:378)

Any ideas? Do I need to install it ?

olsgreen commented 4 years ago

@georgearnall Can you try removing the package olsgreen/wkhtmltopdf-amd64 and reinstalling? I've just replaced the binary.

georgearnall commented 4 years ago

@olsgreen It Works! Thanks for your help this is exactly what I needed.

Thorry84 commented 4 years ago

If nobody wants to make a generic Linux binary statically linked, this package should be marked as obsolete and other packages shouldn't depend on this. It's great other people want to make replacements for often used platforms such as Ubuntu, but that's far from a drop-in replacement of this package.

Such a shame generic binaries aren't built anymore, but I understand the reasons for it.