<分区> 分区>
我需要从我的 python 代码调用 pdfminer 顶级 python 脚本:
这里是 pdfminer 文档的链接:
https://github.com/pdfminer/pdfminer.six
自述文件显示如何从终端操作系统提示符调用它,如下所示:
pdf2txt.py samples/simple1.pdf
这里通过pip命令将pdf2txt.py安装到全局空间:
pip 安装 pdfminer.six
我想从项目根目录中的 python 代码中调用它:
my_main.py(在项目根目录下)
for pdf_file_name in input_file_list:
# somehow call pdf2txt.py with pdf_file_name as argument
# and write out the text file in the output_txt directory
我该怎么做?
