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