python中PDF转png图片:
调用第三方文件 :mutool
官方文档:https://mupdf.com/docs/manual-mutool-draw.html
# mutool command usage "mutool draw -r resolution -o output pdfsource [page 1,5,10-15]"
command = '%s draw -r 200 -o %s/out%%d.png %s' % (mutool, root_path, pdf_file_path) # 转换为png %d会默认对应pdf的页数