Test processing with tables

This commit is contained in:
Fred Boniface 2024-12-02 01:56:25 +00:00
parent d9abf9f19e
commit aca3f94396

9
src/tables.py Normal file
View File

@ -0,0 +1,9 @@
import pdfplumber
with pdfplumber.open("./../1031 THO SC CNDR.pdf") as pdf:
for page_number, page in enumerate(pdf.pages, start=1):
tables = page.extract_tables()
for table in tables:
print(f"Table on page {page_number}: ")
for row in table:
print(row[0])