docx2pdf
docx2pdf copied to clipboard
Application can't be found. (-2700)
I am trying to convert a .docx file to pdf on Mac OS 14.
File Health
I am able to open the original file in Pages and convert it to pdf from Mac Pages. So it is not corrupted
Error
def run(cmd): process = subprocess.Popen(cmd, stderr=subprocess.PIPE) while True: line = process.stderr.readline().rstrip() if not line: break yield line.decode("utf-8")
This function is giving an error
/Users/samrat/.pyenv/versions/3.9.4/envs/docs/lib/python3.9/site-packages/docx2pdf/convert.jxa: execution error: Error: Error: Application can't be found. (-2700)
Apple documentation says it's UNKNOWN ERROR. https://developer.apple.com/library/archive/documentation/AppleScript/Conceptual/AppleScriptLangGuide/reference/ASLR_error_codes.html
Any idea what is going on here? Thanks for help!