我想将一个多页的PDF文档转换成图像对象列表结构,而不保存在磁盘上(我想用PIL图像库进行处理),使用Python。到目前为止,我只能先将图像写入文件中:
from wand.image import Image
with Image(filename='source.pdf') as img:
with img.convert('png') as converted:
converted.save(filename='pyout/page.png')
但是我如何直接将上面的img对象转换为PIL.Image对象的列表?