Skip to content
Advertisement

Save doc file as pdf file using python

I want to save a doc file as pdf using python, I tried so many solution but I couldn’t find the right one.

This is my code, I tried to make the output file as a pdf file but it didn’t open. Any help is highly appreciated :

JavaScript

Advertisement

Answer

JavaScript

There is a Python package called docx2pdf. You can use it to simply convert docx file into pdf!

There is a link to the package! https://pypi.org/project/docx2pdf/

User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement