import pdf_inspector import sys
读取文件并检测类型
result = pdf_inspector.process_pdf(“/home/pi/tmp-drive/ab8eccdad59f4eeeb1f27c0c2102e6b9/田浩然上传的资料/0C101软件构件与中间件技术/7-软件构件.pdf”)
输出检测结果
print(f”PDF_TYPE: {result.pdf_type}”) print(f”PAGE_COUNT: {result.page_count}”) print(f”MARKDOWN: {result.markdown}”)