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 It doesn't print out the standard output from the testing commands.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 This script checks both testing commands exit status and ANY non-empty output to stderr. Qpdf -check $file) 2>
0 Comments
Leave a Reply. |