ZJUEVA-Reimburse/README.md

25 lines
721 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

# ZJUEVA 财外报销脚本助手
## 功能
将当前文件夹中以`发票-付款记录-购买记录`为一组的三张图片放在`.docx`文件的同一页面。
会将`.pdf`、`.jpg`、`.jpeg`文件自动转换为`.png`文件再插入。
## 使用方法
1. 将`.py`文件与待处理图片放在同一个文件夹。
2. 文件夹中所有图片按照分组命名:【两位数字】【类型】【其余内容】。
从01开始按顺序命名序号同组的文件序号相同类型发票a付款记录b购买记录c。
例如02b公仔付款.png -> 第二组的付款记录图片。
3. 运行`.py`文件,根据提示进行操作。
## 所需包
- python-docx
- pillow
- pdfkit
- fitz