def pdf_to_img(pdf_file, page_num, page_width, page_height):
img = Image(filename="<STR_LIT>".format(pdf_file, page_num - <NUM_LIT:1>))<EOL>img.resize(page_width, page_height)<EOL>return img<EOL>
Converts pdf file into image
:param pdf_file: path to the pdf file
:param page_num: page number to convert (index starting at 1)
:return: wand image object