Test on windows 10
pip install fpdf
pip install wand
http://docs.wand-py.org/en/latest/guide/install.html#install-imagemagick-on-windows
https://www.ghostscript.com/download/gsdnld.html
python pdf2png_png2pdf.py png2pdf jpgpath width heigth itemtype
this script will get all itemtype file in jpgpath to result.pdf with width heigth
python pdf2png_png2pdf.py png2pdf C:\path\urlparse 638 359 jpg
python pdf2png_png2pdf.py pdf2png pdfname itemtype
this script will convert result.pdf to file with jpg itemtype
python pdf2png_png2pdf.py pdf2png result.pdf jpg