Python is one of the most popular language in computer science.
here we are using python to convert word file into pdf.
code of this video is available here:
…(read more)
Convert Word 2 PDF: Word to PDF Converter
Convert PowerPoint 2 PDF: PPT to PDF Converter
Convert Excel 2 PDF: Excel to PDF Converter
Convert an Image 2 PDF: Image to PDF Converter
Convert HTML 2 PDF: HTML to PDF Converter
More Tools: PDF Converter
If it didn't work for you, put your "docx" file to your project root. Then you can try like this:
convert("./word.docx", "./converted-file.pdf")
Write your word file name instead of word.docx.
Important, your word file extension should be .docx, not .doc
Also, keep the dot and slash before the filename.
How to run the same on Windows server 24/7 without interruption.
Hey i had a doubt could you plz resolve it.
from docx2pdf import convert
path="C:/Users/owner/Desktop/k/docx"
li=os.listdir(path)
#print(li)
for file in li:
if file.endswith(".docx"):
convert(file)
this is the code that i wrote and its not working
irritating music…
hello..
i want to convert xlsx (excel) file into a pdf format by using django so what should i do?
С .doc работает?
Thank you so much for this video !!!
Hi sir. Thanks. I got an error ' cannot import name 'convert' can you help me pls