import pdfbox p = pdfbox.PDFBox() text = p.extract_text('/home/joel/sc.pdf') print(text)
Error:
Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/joel/scripts/pdfbox.py", line 2, in <module> p = pdfbox.PDFBox() AttributeError: module 'pdfbox' has no attribute 'PDFBox'
import pdfbox p = pdfbox.PDFBox() text = p.extract_text('/home/joel/sc.pdf') print(text)
Error:
Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/joel/scripts/pdfbox.py", line 2, in <module> p = pdfbox.PDFBox() AttributeError: module 'pdfbox' has no attribute 'PDFBox'