AlJohri / docx2pdf

MIT License
506 stars 96 forks source link

Batch runs can try and convert word temp files #53

Open KillyMcDead opened 2 years ago

KillyMcDead commented 2 years ago

I have noticed sometimes converting from a folder attempts to convert the word temp files. I changed line 23 of init.py from for docx_filepath in tqdm(sorted(Path(paths["input"]).glob("*.docx"))): to for docx_filepath in tqdm(sorted(Path(paths["input"]).glob("[!~]*.docx"))): and that seems to fixed the problem.

AlJohri commented 2 years ago

thanks, @KillyMcDead- can you submit a pull request?