inputpath = "File.pdf"
outputpath = myfile #Don't worry about it, i put there path
# to convert all pages
result = pdf2jpg.convert_pdf2jpg(inputpath, outputpath, pages="ALL")
print(result)
if name == "main":
pdf2jpg()
`
Then i got error as:
AttributeError: 'function' object has no attribute 'convert_pdf2jpg'
My code is:
`def pdf2jpg():
if name == "main": pdf2jpg() ` Then i got error as: AttributeError: 'function' object has no attribute 'convert_pdf2jpg'