def save_image(pdf_path, img_path, page_num):
pdf_img = Image(filename="<STR_LIT>".format(pdf_path, page_num))<EOL>with pdf_img.convert("<STR_LIT>") as converted:<EOL><INDENT>converted.background_color = Color("<STR_LIT>")<EOL>converted.alpha_channel = "<STR_LIT>"<EOL>converted.save(filename=img_path)<EOL><DEDENT>
Creates images for a page of the input pdf document and saves it
at img_path.

:param pdf_path: path to pdf to create images for.
:param img_path: path where to save the images.
:param page_num: page number to create image from in the pdf file.
:return: