Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: 'function' object has no attribute 'convert_pdf2jpg' #10

Closed
xIneffable opened this issue Jun 12, 2020 · 1 comment
Closed

Comments

@xIneffable
Copy link

xIneffable commented Jun 12, 2020

My code is:

`def pdf2jpg():

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'

@xIneffable
Copy link
Author

Found the solution.
Put 'from pdf2jpg import pdf2jpg' under function

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant