# 转换pdf文件为单张图片
gm.exe convert pdf.pdf -append pdf.png

# 转换pdf为每页一张图片

gm.exe convert pdf.pdf +adjoin 'pdf%02d.png'