Files
SemesterapparatsManager/src/logic/get_pdf_content.py
WorldTeacher 0a9818940c add files
2024-01-26 08:28:01 +01:00

12 lines
356 B
Python

import tabula
file="files/Semesterapparat - Anmeldung.pdf"
def extract_book_data(file):
tables=tabula.read_pdf(file,pages="all",encoding="utf-8",multiple_tables=True)
tabula.convert_into(file, file.replace(".pdf"), output_format="csv", pages="all")
with open("files/Semesterapparat - Anmeldung.csv", "r") as f:
content=f.read()