使用流时,ImageMagick仅转换pdf的第一页

时间:2019-06-15 09:54:15

标签: node.js aws-lambda imagemagick

问题

当我使用ImageMagick通过将整个文件读入内存来转换pdf时,它将PDF转换为6页图像(根据需要)。当我使用流接口尝试相同操作时,它只会转换第一页,而不会转换其他任何页面。如何获取此代码的流版本以转换整个pdf?

代码

org.hibernate.exception.SQLGrammarException: JDBC exception executing SQL [select c1_0.constructor_id, c1_0.is_active, m1_0.model_id, c3_0.constructor_id, c3_0.is_active, m3_0.model_id, m3_0.constructor_id, m3_0.count_business_slots, m3_0.count_eco_slots, m3_0.is_active, m3_0.name, c3_0.name, m1_0.count_business_slots, m1_0.count_eco_slots, m1_0.is_active, m1_0.name, m1_0.constructor_id, c1_0.name from constructor as c1_0 left outer join (model as m1_0) on c1_0.constructor_id=m1_0.constructor_id left outer join (constructor as c2_0) on m1_0.constructor_id=c2_0.constructor_id inner join (constructor as c3_0) on m1_0.constructor_id=c3_0.constructor_id left outer join (model as m3_0) on c3_0.constructor_id=m3_0.constructor_id where c1_0.is_active=?]

环境

使用GhostScript 9.26和ImageMagick 7.0.8-49

我看不到任何错误输出,但是我相对不熟悉流。

0 个答案:

没有答案