Wicked pdf not showing amazon s3 images

Lately, a very strange thing has been added to my application, and I'm not sure what has changed? wicked pdf no longer displays my images https://from my amazon s3 server. I use images with src= "https://pathtoimage.png", and they displayed the just found earlier.

Image display does not work locally or on the hero. On my production server, pdf rendering does not work and creates an empty blank white page.

I use a gem

gem 'wkhtmltopdf-binary'
gem 'wicked_pdf'
+1
source share
3 answers

fork wkmtltopdf- , : https://github.com/pallymore/wkhtmltopdf-binary. Gemfile:

gem 'wkhtmltopdf-binary-edge', '~> 0.12.2.1'

+2

2 . wkhtmltopdf 0.9.6. 0.9.9. .

, - .

+1

, wkhtmltopdf, wkhtmltopdf-binary, 0.9.9, . gem, , 0.12.2.1, .

I am on OS X, so I installed it using homebrew, but there are binaries for other systems at wkhtmltopdf.org

Here's how to install a newer version of wkhtmltopdf with homebrew:

brew install cask
brew cask install wkhtmltopdf
0
source

Source: https://habr.com/ru/post/1623734/


All Articles