-2
I am using the Python library, which is Textract, to extract text from a PDF file, but is getting an error while running the script. Below is the script and the error returned in the console.
import textract
text = textract.process("C:\Users\Willian Ambisis\Downloads\licenca-ambiental2.pdf")
print(text)
Error:
File "c: Users Willian Ambisis Desktop Textract textractPython.py", line 3 text = textract.process("C: Users Willian Ambisis Downloads licenca-ambiental2.pdf") Syntaxerror: (error Unicode) 'unicodeescape' codec can’t Decode bytes in position 2-3: truncated UXXXXXXXX escape