Commit 5bdb4284 authored by ChamendiPabasara's avatar ChamendiPabasara

PDF converter to MS word - Updated

parent 23a0c1ae
...@@ -374,10 +374,12 @@ def PdfBreaker(gz_url): ...@@ -374,10 +374,12 @@ def PdfBreaker(gz_url):
print("exists!") print("exists!")
continue continue
else: else:
#pdf converter to MS word
cv = Converter(pdf_file) cv = Converter(pdf_file)
cv.convert(docx_file, start=0, end=None) cv.convert(docx_file, start=0, end=None)
cv.close() cv.close()
pubDate_ = os.path.basename(pdf_file)[0:10] pubDate_ = os.path.basename(pdf_file)[0:10]
document = Document(output_docx_file_path.format(get_base_path())) document = Document(output_docx_file_path.format(get_base_path()))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment