You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Left is original doc file, right is file I exported with following code
import docx2txt
import os
def write_file(name, content):
with open(name, 'w') as file:
file.write(content)
files = os.listdir()
for file in files:
if file.endswith('.docx'):
text = docx2txt.process(file)
write_file(file.replace('.docx', '.srt'), text)
The text was updated successfully, but these errors were encountered:
Left is original doc file, right is file I exported with following code
The text was updated successfully, but these errors were encountered: