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

Please update wkhtmltopdf to version 0.12.5 #38

Open
arkadiuszkalemba opened this issue Feb 11, 2019 · 21 comments
Open

Please update wkhtmltopdf to version 0.12.5 #38

arkadiuszkalemba opened this issue Feb 11, 2019 · 21 comments

Comments

@arkadiuszkalemba
Copy link

arkadiuszkalemba commented Feb 11, 2019

https://wkhtmltopdf.org/downloads.html
The current stable series is 0.12.5, which was released on June 11, 2018

Thanks.

@arkadiuszkalemba arkadiuszkalemba changed the title Please update whtmltopdf to version 0.12.5 Please update wkhtmltopdf to version 0.12.5 Feb 11, 2019
@KevinBeckers
Copy link

Any progress on this update?

@intrepidws
Copy link

It looks like this was done (#39) but there has been no release with this update yet.

@Jcs1994
Copy link

Jcs1994 commented Apr 30, 2019

Please!

@feedmeastraycat
Copy link

Yes, please. :)

@VincentLanglet
Copy link

@h4cc It would be great to upload the last version

@cdarken
Copy link

cdarken commented Jul 28, 2019

@h4cc are you still alive, mate?

@garak
Copy link

garak commented Jul 29, 2019

It looks like this was not done.
Referenced PR was closed without merge.

@michael-schaefer-eu
Copy link

It seems that this repository is not maintained anymore, I had to create my own package for updated binaries, you can find it here:

https://github.com/michael-schaefer-eu/wkhtmltox

https://packagist.org/packages/michael-schaefer-eu/wkhtmltox

Note: it contains four binaries (wkhtmltopdf and wkhtmltoimage, each amd64 and i386 architectures) and they are compiled only for ubuntu bionic 18.04

@hanovruslan
Copy link

@michael-schaefer-eu
IMO it would be useful to add in your package's composer replace option

@michael-schaefer-eu
Copy link

@hanovruslan I added it, thanks for the hint.

@konwww
Copy link

konwww commented Oct 10, 2019

oh,I need 0.12.5

@thejacer87
Copy link

for anyone looking for a drop-in replacement (using the debian stretch binary), i forked and made a package on packagist (64-bit only)

@VincentLanglet
Copy link

I just send him a tweet https://twitter.com/MisterDeviling/status/1221788785148678152, maybe he does not have time/interest for this project and will look for maintainers...

@ejfrancis
Copy link

ejfrancis commented Feb 24, 2020

👍 to upgrade to 0.12.5

edit: 0.12.6-dev branch has been available for awhile now and fixes some bugs. Having that available via composer would be great too https://builds.wkhtmltopdf.org/0.12.6-dev/

@johnwedgbury
Copy link

You can include 0.12.5 by adding this to your composer.json:

"h4cc/wkhtmltopdf-amd64": "dev-master#4144bccbfaa40e8150a763e2d55dfedce9d13909",

This will include the version from this pull request #37

@ciltocruz
Copy link

It seems that this repository is not maintained anymore, I had to create my own package for updated binaries, you can find it here:

https://github.com/michael-schaefer-eu/wkhtmltox

https://packagist.org/packages/michael-schaefer-eu/wkhtmltox

Note: it contains four binaries (wkhtmltopdf and wkhtmltoimage, each amd64 and i386 architectures) and they are compiled only for ubuntu bionic 18.04

Hi. This works great on systems <Ubuntu 19.10

As you know WKHTMLTOPDF depends on some libraries. The ones that give more problems are:

libjpeg.so
libpng.so
libssl.so
libcrypto.so

In Ubuntu 19.10 the library dependencies have changed and the ones indicated in this package 0.12.5 "no longer work" (except that you install the dependencies yourself)

When you try to work with a PHP application in a hosting where you cannot execute APT commands, it is very important that the binary is compatible with the libraries installed in the system (share hosting).

In my case, this binary seems to request these libraries:
libjpeg.so.8
libpng16.so.16
libssl.so.1.1
libcrypto.so.1.1

In ubuntu 19.10 and 20.04 and Debian9 and Debian10 libjpeg v8 does not appear in the repositories.
You have to use libjpeg.so.62.

Thanks to the binary that @thejacer87 (#38 (comment)) has uploaded now wkhtmltopdf is working on the latest linux distros with this libraries.
libjpeg.so.62
libpng16.so.16
libssl.so.1.1
libcrypto.so.1.1

We should try to keep these binaries as possible for the latest distros.

Is it true that the latest stable version is still 0.12.5?

Greetings to all!

@ciltocruz
Copy link

You can include 0.12.5 by adding this to your composer.json:

"h4cc/wkhtmltopdf-amd64": "dev-master#4144bccbfaa40e8150a763e2d55dfedce9d13909",

This will include the version from this pull request #37

This commit does not work on ubuntu 20.04 or debian9 because it uses libjpg v8. This library is deprecated in these systems.

A greeting!

@VincentLanglet
Copy link

You can include 0.12.5 by adding this to your composer.json:

"h4cc/wkhtmltopdf-amd64": "dev-master#4144bccbfaa40e8150a763e2d55dfedce9d13909",

This will include the version from this pull request #37

This commit does not work on ubuntu 20.04 or debian9 because it uses libjpg v8. This library is deprecated in these systems.

A greeting!

Hi @ciltocruz.

I recently tried to migrate from debian8 to debian9 and stopped because I couldn't install the libjpg v8 library.

What is the solution you recommend for debian9 if I want to use wkhtmltopdf 0.12.5 ?

@ciltocruz
Copy link

Hello @VincentLanglet

It is not the best solution. In fact I wouldn't call it a solution.

The problem that I had was in a Debian9 in a shared hosting.
I have asked the provider team to install wkhtmltopdf in the system through the "deb" of the official website. After that, the necessary libraries are installed.

Then I have incorporated in my project the "binary" obtained here:
https://packagist.org/packages/silvertipsoftware/wkhtmltopdf-amd64

I have run my app and it seems to work.

The difference with the binary that it had before is that the previous one was v0.12.5 but with libjpg v8 and it was a static binary (application/x-executable) and now it is the same version v0.12.5 but running modern libraries (libjpg.so.62 ) and is no longer application/x-executable. It is now application/x-sharedlib.

I don't know if this will be a problem for the application I'm running ...

Greetings and I hope it is worth it.

@VincentLanglet
Copy link

Thanks, I wanted to be sure to understand you correctly.

I have tried

"h4cc/wkhtmltopdf-amd64": "dev-master#4144bccbfaa40e8150a763e2d55dfedce9d13909",

without success.

I'll follow your recommendation and try again with https://packagist.org/packages/silvertipsoftware/wkhtmltopdf-amd64 then.

@ciltocruz
Copy link

Correct.
And it seems works.

However, I would like to know if an executable static binary can be created with that particular version.

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