
Word = client.CreateObject('Word.Application') From exploring questions here and elsewhere, this is what I have so far: import subprocessĬonvert a doc/docx document to pdf formatĭoc = os.path.abspath(doc) # bugfix - searching files in windows/system32

But converting to pdf seems to require one of those. With python-docx and other methods, I do not require a windows machine with word installed, or even libreoffice on linux, for most of the processing (my web server is pythonanywhere - linux but without libreoffice and without sudo or apt install permissions).

I'm dealing with a problem trying to develop a web-app, part of which converts uploaded docx files to pdf files (after some processing).
