我想使用 PDFRW 库操作 pdf 文件,所以当我尝试获取 pdf 文件的源时,我无法获取文件并阅读它,所以请帮忙。
from pdfrw import pdfreader
import os
import pathlib
pdf_file = pdfreader('C:\\Users/4488\\Downloads\\Life-of-Muhammad.pdf')
print(pdf_file.Keys())
this is the error that I am getting
Traceback (most recent call last):
File "c:\Users\4488\desktop\Xhamar-Project\xhamar.py", line 8, in
<module>
get_file = pdfreader(pdf_file)
TypeError: 'module' object is not callable