Error: FloatObject (b'0.000000000000-14210855') invalid; use 0.0 instead while using PyPDF2
I am using function to count occurrences of given word in pdf using PyPDF2. While the function is running I get message in terminal: FloatObject (b’0.000000000000-14210855′) invalid; use 0.0 instead My code: def count_words(word): print() print(‘Counting words..’) files = os.listdir(‘./pdfs’) counted_words = [] for idx, file in enumerate(files, 1): with open(f’./pdfs/{file}’, ‘rb’) as pdf_file: ReadPDF… Read More Error: FloatObject (b'0.000000000000-14210855') invalid; use 0.0 instead while using PyPDF2