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)
posted @ 2024-12-15 10:59  wstong  阅读(23)  评论(0编辑  收藏  举报