When PDF to DOCX conversion is completed, you can download your DOCX file. docx after the document name when I saved it but that didn't work either as the module docx can't do that. First you need to add file for conversion: drag and drop your PDF file or click the 'Choose File' button. After that, it just says: 0%| | 0/1 Īnd I tried to simply put. Several PDF files can be loaded to the Mac tool at a time. 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. Open Adobe > Tools > Export PDF > Add Files to Export Under convert to, choose Microsoft Word Document. Launch the Mac PDF converter on your computer, drag and drop PDF files to the software, or you can click ' Add Files ' or ' Add Folder ' to load the target PDF files to the software. 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. How to Convert PDF to Word on Mac or Windows without Adobe Download and install Foxit Phantom.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |