0
複数ページのPDFをConvert multipage PDF to a single imageでconvert in.pdf -append out%d.png
のCLIで実現できる単一のPNGに変換したいのですが、imagemagickでpythonのpngにpdfのページを追加するには
私は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")