0
我想将多页PDF转换为单个PNG,可以通过CLI以convert in.pdf -append out%d.png
(根据Convert multipage PDF to a single image)实现。如何使用imagemagick将python页面附加到Python中的png
我可以在没有脱壳的情况下在Python中实现相同的功能吗?我目前有:
with Image(filename=pdf_file_path, resolution=150) as img:
img.background_color = Color("white")
img.alpha_channel = 'remove'
img.save(filename=pdf_file_path[:-3] + "png")