AttributeError: module 'pdftotext' has no attribute 'PDF'
vignesh-bosch opened this issue · comments
Vigneshkumar Selvaraj commented
import pdftotext
Load your PDF
with open(r"test_batch\test1.pdf", "rb") as f:
pdf = pdftotext.PDF(f)
How many pages?
print(len(pdf))
It returns:
AttributeError: module 'pdftotext' has no attribute 'PDF'
Jason Alan Palmer commented
How did you install the module? Please be thorough.
Vigneshkumar Selvaraj commented
Jason Alan Palmer commented
Okay, on what OS? If you actually want help, you need to put in a little more effort, give some kind of information.
Jason Alan Palmer commented
Nothing useful here so far