![]() ![]() When I publish the function, I can see poppler-utils package being installed. Is poppler installed and in PATH? Stack: File "/azure-functions-host/workers/python/3.7/LINUX/X64/azure_functions_worker/dispatcher.py", line 349, in _handle_invocation_request self._run_sync_func, invocation_id, fi.func, args) File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run result = self.fn(*self.args, **self.kwargs) File "/azure-functions-host/workers/python/3.7/LINUX/X64/azure_functions_worker/dispatcher.py", line 511, in _run_sync_func return func(**params) File "/home/site/output_folder=path) File "/home/site/line 97, in convert_from_path page_count = pdfinfo_from_path(pdf_path, userpw, poppler_path=poppler_path) File "/home/site/line 468, in pdfinfo_from_path "Unable to get page count. Result: Failure Exception: PDFInfoNotInstalledError: Unable to get page count. I am getting the same error once I publish my azure function which has convert_from_path() in it. ![]() ![]() Thanks in advance for your quicker responses :-) Please let me know if any issue in detail. upw : user password (for encrypted files)Į:\Program Files\Python\Lib\site-packages\pdf2image\poppler-0.68.0\bin> opw : owner password (for encrypted files) dests : print all named destinations in the PDF rawdates : print the undecoded date strings directly from the PDF file isodates : print the dates in ISO-8601 format struct-text : print text contents along with document structure (for tagged files) struct : print the logical document structure (for tagged files) meta : print the document metadata (XML) PFB the response I received for pdfinfo.Į:\Program Files\Python\Lib\site-packages\pdf2image\poppler-0.68.0\bin>pdfinfo E:\Program Files\Python\Python37-32\SrcFiles\1234567890.1.pdfĬopyright 2005-2018 The Poppler Developers. Page_count = pdfinfo_from_path(pdf_path, userpw, poppler_path=poppler_path)įile "E:\Program Files\Python\lib\site-packages\pdf2image\pdf2image.py", line 441, in pdfinfo_from_path Hp, ht, pid, tid = _winapi.CreateProcess(executable, args,įileNotFoundError: The system cannot find the file specifiedĭuring handling of the above exception, another exception occurred:įile "E:\Program Files\Python\Python37-32\Conv.py", line 67, inįile "E:\Program Files\Python\lib\site-packages\pdf2image\pdf2image.py", line 94, in convert_from_path Self._execute_child(args, executable, preexec_fn, close_fds,įile "E:\Program Files\Python\lib\subprocess.py", line 1307, in _execute_child Proc = Popen(command, env=env, stdout=PIPE, stderr=PIPE)įile "E:\Program Files\Python\lib\subprocess.py", line 854, in init Referencing #48, I have popler installed, pdfinfo is in my path - and if called on the attached pdf it works flawlessly.Images = convert_from_path('E:\Program Files\Python\Python37-32\SrcFiles\2234567895.pdf',poppler_path='E:\Program Files\Python\Lib\site-packages\pdf2image\poppler-0.68.0\bin')įile "E:\Program Files\Python\lib\site-packages\pdf2image\pdf2image.py", line 420, in pdfinfo_from_path ![]() upw : user password (for encrypted files) : Unable to get page count.Ĭopyright 2005-2018 The Poppler Developers. "Unable to get page count.\n%s" % err.decode("utf8", "ignore") Page_count = pdfinfo_from_path(pdf_path, userpw, poppler_path=poppler_path)įile "C:\Python37\lib\site-packages\pdf2image\pdf2image.py", line 429, in pdfinfo_from_path 21:32:36,200 įile "C:\Python37\lib\site-packages\pdf2image\pdf2image.py", line 419, in pdfinfo_from_pathĭuring handling of the above exception, another exception occurred:įile "C:\Users\X\source\repos\X\JobCreator.py", line 563, in ConvertPdfToJpgįile "C:\Python37\lib\site-packages\pdf2image\pdf2image.py", line 90, in convert_from_path ![]()
0 Comments
Leave a Reply. |