marolz.blogg.se

How to change from word to pdf on mac
How to change from word to pdf on mac








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

how to change from word to pdf on mac

Step 3: Open Microsoft Word on Mac and then use the 'Command + V' keyboard shortcut to paste in the text. Step 2: Select the text or pages that you would like to convert to Word and then hit 'Command + C'. I've looked up several SO and other web pages but I haven't found anything that works. Step 1: Right-click on the PDF document, select 'Open With' and then select 'Preview'.










How to change from word to pdf on mac