Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Abandoned? #43

Open
Thorry84 opened this issue Jun 7, 2020 · 8 comments
Open

Abandoned? #43

Thorry84 opened this issue Jun 7, 2020 · 8 comments

Comments

@Thorry84
Copy link

Thorry84 commented Jun 7, 2020

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
Copy link

bart-v commented Jun 10, 2020

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

@nicholaszuccarelli
Copy link

@bart-v That package is for Windows only.

@georgearnall
Copy link

really need an update for 0.12.6 asap

@olsgreen
Copy link

olsgreen commented Jun 30, 2020

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
Copy link

georgearnall commented Jun 30, 2020

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
Copy link

olsgreen commented Jun 30, 2020

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

@georgearnall
Copy link

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

@Thorry84
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants