diff --git a/contributors/han_ying_feng/office/word.py b/contributors/han_ying_feng/office/word.py new file mode 100644 index 0000000000000000000000000000000000000000..1bfe749cbab9881c2d5eda56930f5dacbf7e92f7 --- /dev/null +++ b/contributors/han_ying_feng/office/word.py @@ -0,0 +1,15 @@ +#!/usr/bin/env python +# -*- coding:utf-8 -*- + +############################################# +# File Name: word.py +# Author: han_ying_feng +# Mail: gyuanhao@163.com +# Created Time: 2022年05月24日23:52:13 +# Description: macOS下有关word的自动化操作 +############################################# +from pypandoc import convert_file + + +def createpdf(wordPath, pdfPath): + convert_file(wordPath, 'pdf', pdfPath)