Generation

generate functionMon, 05 Jun 2023

Open a PDF, convert and normalize text to compare to a value in an excel sheet

def pdf_to_txt(file_name): try: text = textract.process(file_name) text = str(text).replace("\\n", "") text = str(text).replace("\\t", "") text = str(text).replace("\\r", "") text = str(text).replace("b", "") text = str(text).replace("'", "") #text = str(text).replace("-", "") text = str(text).replace(".", " ") text = str(text).replace("/", " ") text = str(text).replace(":", " ") text = str(text).replace(",", " ") text = str(text).replace("\\", " ") text = str(text).replace(" ", " ") text = str(text).replace(" ", " ") text = str(text).replace(" ", " ") text = str(text).replace(" ", " "

Want to kickstart your project?Use the new AI Studio to create your code