From aca3f94396b4a656cf4611536a532ae5f6d8dd77 Mon Sep 17 00:00:00 2001 From: Fred Boniface Date: Mon, 2 Dec 2024 01:56:25 +0000 Subject: [PATCH] Test processing with tables --- src/tables.py | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 src/tables.py diff --git a/src/tables.py b/src/tables.py new file mode 100644 index 0000000..b3e8a8b --- /dev/null +++ b/src/tables.py @@ -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]) \ No newline at end of file