Convert multiple word documents / Docx files to PDF with Python code.
https://pypi.org/project/docx2pdf/
Thumbs up if you like this video yeah?
(cos algos)
Code #
_________
from docx2pdf import convert
import os
path = os.listdir("C:/Users/pi/Desktop/docx2pdf/")
demo for 1 file
#convert("C:/Users/pi/Desktop/docx2pdf/testfile1.docx",
#"C:/Users/pi/Desktop/docx2pdf/output1.pdf")
for i, files in enumerate(path):
if files[-5:] == '.docx':
convert(f"C:/Users/pi/Desktop/docx2pdf/testfile{i}.docx",
f"C:/Users/pi/Desktop/docx2pdf/output{i}.pdf")
#docx #pdf #python
On this page of the site you can watch the video online Docx to PDF Batch Convert with Python Code with a duration of hours minute second in good quality, which was uploaded by the user jobstr 23 November 2020, share the link with friends and acquaintances, this video has already been watched 5,785 times on youtube and it was liked by 48 viewers. Enjoy your viewing!