PCQRSCANER/venv/Scripts/docx2txt

11 lines
308 B
Plaintext
Raw Permalink Normal View History

2019-12-22 21:51:47 +01:00
#!C:\Users\mikol\PycharmProjects\skanerqr\venv\Scripts\python.exe
import docx2txt
if __name__ == '__main__':
import sys
args = docx2txt.process_args()
text = docx2txt.process(args.docx, args.img_dir)
output = getattr(sys.stdout, 'buffer', sys.stdout)
output.write(text.encode('utf-8'))