This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import pdfplumber, pandas as pd | |
| def pdf_to_excel(pdf_path:str,storage:str,columns:list,total_column:int): | |
| try: | |
| # Container for all student records | |
| all_rows = [] | |
| # Expected number of columns | |
| expected_cols = total_column #you can change the number of cols | |
| # Use pdfplumber to open the PDF |