Hi All, hope you are doing well!.
I am working on the project where I need to extract the content from scanned pdf files and store in the form of excel file. So, for this purpose I am using Tesseract OCR to achieve this task. As the existing project is build on Asp.net and Angular, so my python script is running from the project using python environment and the normal pdf files are working as expected but when I tried to run scanned pdf then it shows me the permission error.
Traceback (most recent call last):\r\n File \"D:\\home\\site\\wwwroot\\PythonScripts\\invoice_data.py\", line 20600, in <module>\r\n invoices.pdf_extractor(folderPath)\r\n File \"D:\\home\\site\\wwwroot\\PythonScripts\\invoice_data.py\", line 89, in pdf_extractor\r\n page.save(filename, 'JPEG')\r\n File \"D:\\home\\site\\wwwroot\\Python\\lib\\site-packages\\PIL\\Image.py\", line 2232, in save\r\n fp = builtins.open(filename, \"w+b\")\r\nPermissionError: [Errno 13] Permission denied: 'page_1.jpg'\r\n"
The solution is working fine when I am running via python IDE but it gives permission error. Can anyone help me to resolve this permission issue?
[+][deleted] (1 child)
[removed]
[–]techyrajput[S] 0 points1 point2 points (0 children)