sorl-thumbnail多页pdf [英] sorl-thumbnail multi-page pdfs
问题描述
可以使用sorl缩略图多页pdf?我知道您需要使用ImageMagick后端才能使用pdf。但是我没有成功的多页pdf。看源码,我认为这是因为转换命令,当它看到多页pdf,如foo.pdf创建一个名为foo-1.jpg foo-2.jpg等的集合,我不认为sorl期望从1个文件中查看此类型的输出。有没有办法做这个/解决方法/补丁?
It is possible to use sorl to thumbnail multi-page pdfs? I know you need to use the ImageMagick back end to use pdfs at all. But I am having no success with multi-page pdfs. Looking at the source I think it is because the convert command when it sees multi-page pdfs such as foo.pdf creates a set named foo-1.jpg foo-2.jpg etc... and I don't think sorl expects to see this type of output from 1 file. Is there a way to do this/workaround/patch?
推荐答案
我需要自己解决这个问题,请求转换。
I needed to solve this myself and made an adjustment which modifies the call to convert.
在此处查看我的补丁:
https://github.com/jamting/sorl-thumbnail/commit/6a4d705db3529640a9e193044b615f24ff96eef4
HTH!
这篇关于sorl-thumbnail多页pdf的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!