import pdfplumber
def pdf_to_arr(path):
with pdfplumber.open(path) as pdf:
table_1 = []
for each in pdf.pages:
table = each.extract_table()
table_1.extend(table)
return table_1
path = "001.pdf"
endArr=pdf_to_arr(path)
print(endArr)
评论(0)