iowhe.blogg.se

Converting ms word mac to pdf without formatting messing up
Converting ms word mac to pdf without formatting messing up






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

converting ms word mac to pdf without formatting messing up

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).

converting ms word mac to pdf without formatting messing up

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).








Converting ms word mac to pdf without formatting messing up