from pdf2docx import Converter

pdf_file = r"C:\xampp\htdocs\TraductorDocumental\entrada\test.pdf"
docx_file = r"C:\xampp\htdocs\TraductorDocumental\salida\test.docx"

print("Abriendo PDF")

cv = Converter(pdf_file)

print("Convirtiendo")

cv.convert(docx_file)

print("Cerrando")

cv.close()

print("FINALIZADO")