I am running this code
from docx2pdf import convert
word_origen = '/content/drive/MyDrive/Personal/Proyectos_Negocios/CLAVELINAS/prueba1.docx'
convert(word_origen, '/content/drive/MyDrive/Personal/Proyectos_Negocios/CLAVELINAS/prueba1.pdf')
But I got this error:
---------------------------------------------------------------------------
NotImplementedError Traceback (most recent call last)
<ipython-input-9-a5eb2a1a120d> in <cell line: 2>()
1 word_origen = '/content/drive/MyDrive/Personal/Proyectos_Negocios/CLAVELINAS/prueba1.docx'
----> 2 convert(word_origen, '/content/drive/MyDrive/Personal/Proyectos_Negocios/CLAVELINAS/prueba1.pdf')
/usr/local/lib/python3.10/dist-packages/docx2pdf/__init__.py in convert(input_path, output_path, keep_active)
106 return windows(paths, keep_active)
107 else:
--> 108 raise NotImplementedError(
109 "docx2pdf is not implemented for linux as it requires Microsoft Word to be installed"
110 )
NotImplementedError: docx2pdf is not implemented for linux as it requires Microsoft Word to be installed
I am running the code in Google Colab but after I will deploy the code in Pythonanywhere platform.
Do you have any idea to install Microsoft Word or how to pass this warning?
Note: Any help is useful, I am only going to convert about 3 documents per month. If you know any SAAS will be useful too.
Thanks.
New contributor
diego medina is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
1