資源簡介
需要 pip install comtypes -i https://mirrors.aliyun.com/pypi/simple
代碼片段和文件信息
import?sys
import?os
import?comtypes.client
def?d2p(doc_namepdf_name):
in_file=doc_name
out_file=pdf_name
#?create?COM?object
word=comtypes.client.Createobject(‘Word.Appli
評論
共有 條評論