# Importing the Converter() class
from pdf2docx import Converter
from pdf2docx import Converter
# Specifying the pdf & docx files
pdf_file = 'ieep.pdf'
docx_file = 'sample.docx'
try:
cv = Converter(pdf_file)
cv.convert(docx_file)
cv.close()
except:
print('Conversion Failed')
else:
print('File Converted Successfully')
No comments:
Post a Comment