when ever i run this code my GUI show this error:
_VirtualList' object is not callable
where im wrong?
import PyPDF2
pdf = open("the-alchemist-paulo-coelho.pdf", "rb")
reader = PyPDF2.PdfReader(pdf)
page = reader.pages(0)
print(page.extractText())
Use page = reader.pages[0]
instead of
page = reader.pages(0)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With