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

Upgrade process and v1.2.2 pre release #23

Closed
jeroenj opened this issue Oct 23, 2014 · 6 comments
Closed

Upgrade process and v1.2.2 pre release #23

jeroenj opened this issue Oct 23, 2014 · 6 comments

Comments

@jeroenj
Copy link
Contributor

jeroenj commented Oct 23, 2014

The currently bundled version of wkhtmltopdf is v1.2.1. Since last week a lot of web hosts have disabled SSLv3 because of the POODLE attack.
wkhtmltopdf v1.2.1 (and earlier) still use SSLv3 by default. This has been changed in the current testing release (v1.2.2.testing).

I was having a look to create a patch with the updated (testing) binaries so we could use this pre version in our app right now (since we rely on assets deliverd over https with SSLv3 disabled). Is there any good way to update the bundled binaries? It seems that the osx one can be extracted from the pkg, but I have no idea how to do that for the linux binaries. One option is to start a vagrant box for each required release and extract the binary from there but would that be enough? It would be nice if there was some more information on how to udpate the binaries.

@richardwan
Copy link

I have this issue as well and tried getting around it by putting this in my gemfile:
gem 'wkhtmltopdf-binary', github: "zakird/wkhtmltopdf_binary_gem"

you can see the effect of doing this by running bundle exec wkhtmltopdf -V before and after the change to the bundle.

this worked fine locally on my mac, but i get this error when running on cloud66 linux box web_head/shared/bundle/ruby/2.1.0/bundler/gems/wkhtmltopdf_binary_gem-00d1104350f4/bin/wkhtmltopdf_linux_amd64: error while loading shared libraries: libjpeg.so.62: cannot open shared object file: No such file or directory

i'm hacking around this by doing a bundle exec which wkhtmltopdf and replacing the file there with the appropriate binary

@dalibor
Copy link

dalibor commented Oct 25, 2014

@richardwan you need to install libjpeg62

sudo apt-get install -qq libjpeg62

@dalibor
Copy link

dalibor commented Oct 25, 2014

@jeroenj the issue is gone if you use binaries from master branch of this repo. There's another issue for rubygems release of current master with those binaries: #17.

@richardwan
Copy link

@dalibor thanks for the instructions on libjpeg62. If I understand correctly, I am just experiencing this issue: #19

@rietta
Copy link

rietta commented Jun 18, 2015

Bundling from the master branch of this repo rather than the official Gem build seems to have fixed an issue with a PDF with images from Amazon S3 over SSL were not rendering. Due to a silent SSL failure with the older 0.9.9.3 build of wkhtmltopdf.

@unixmonkey
Copy link
Collaborator

0.12.3 has been merged in PR #31

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