邪恶的pdf不显示亚马逊s3图像 [英] wicked pdf not displaying amazon s3 images

查看:89
本文介绍了邪恶的pdf不显示亚马逊s3图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最近我的应用发生了一件非常奇怪的事情,不确定是什么变化了?邪恶的pdf不再显示我的amazon s3服务器上的https://图像.我正在将图像与src= "https://pathtoimage.png"一起使用,并且它们只是在显示之前找到过.

A very strange thing has happended to my app recently and not sure what has changed? wicked pdf is not longer displaying my https:// images from my amazon s3 server. I am using the images with the src= "https://pathtoimage.png" and they were displaying just find before.

图像显示在本地或heroku上不起作用.在我的生产服务器上,pdf渲染无法正常工作,并创建了一堆空白页.

The displaying of images is not working locally or on heroku. On my production server, the pdf rendering is not working as well and creating a bunch of blank white pages.

我正在使用宝石

gem 'wkhtmltopdf-binary'
gem 'wicked_pdf'

推荐答案

这是为我工作的wkmtltopdf-binary的分支: https://github.com/pallymore/wkhtmltopdf-binary . 在Gemfile中插入以下行:

This is the fork of the wkmtltopdf-binary that worked for me: https://github.com/pallymore/wkhtmltopdf-binary. Insert the following lines in your Gemfile:

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

这篇关于邪恶的pdf不显示亚马逊s3图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆