python - pdfplumber提取pdf表格
import pdfplumber
with pdfplumber.open('test.pdf') as pdf:
tables = []
for page in pdf.pages:
extracted_tables = page.extract_tables()
tables.extend(extracted_tables)
import pdfplumber
with pdfplumber.open('test.pdf') as pdf:
tables = []
for page in pdf.pages:
extracted_tables = page.extract_tables()
tables.extend(extracted_tables)