![]() ![]() docx after the document name when I saved it but that didn't work either as the module docx can't do that. After that, it just says: 0%| | 0/1 Īnd I tried to simply put. The things I tried to do for it to save as a pdf: from docx2pdf import convertĬonvert('/my/folder/m圜hangedDocument.docx', '/my/folder/m圜hangedDocument.pdf')īut it says that Word needs permission to open the saved file and I have to select the file to give it the permission. On your Mac, open the document you want to save as a PDF. This is an example of the code I'm working with: # Opening the original documentĭoc.save('/my/folder/m圜hangedDocument.docx') However, I want it to save it as a pdf but I don't know how to. The script I wrote, opens a docx, changes some words and then saves it in a certain folder as a docx. I've looked up several SO and other web pages but I haven't found anything that works. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |