zoukankan      html  css  js  c++  java
  • pywin32 pywin32 docx文档转html页面 word doc docx 提取文字 图片 html 结构

    https://blog.csdn.net/X21214054/article/details/78873338

    # python docx文档转html页面 - 程序猿tx - 博客园 https://www.cnblogs.com/taixiang/p/9978456.html
    # Usage — PyDocX dev documentation https://pydocx.readthedocs.io/en/latest/usage.html



    pywin32 · PyPI https://pypi.org/project/pywin32/


    from win32com import client as wc

    f = files
    # https://docs.microsoft.com/zh-cn/office/dev/add-ins/reference/requirement-sets/office-add-in-requirement-sets?view=office-js

    for f in files:
    i=10
    try:
    word = wc.Dispatch('Word.Application')
    doc = word.Documents.Open(f)
    nf = f.replace('.doc', '.html')
    doc.SaveAs(nf, i, False, '', True, '', False, False, False, False) # 创建或覆盖
    doc.Close()
    word.Quit()
    del word, doc # 否则只有一个文件创建
    except Exception as e:
    print(i, e)

















  • 相关阅读:
    中国象棋评估函数建模
    C语言中指针变量传参
    STM32外部中断
    C语言中的注释
    STM32学习网址
    C语言中的布尔值
    更改KEIL背景配色
    Modbus通讯协议
    DUP
    算法的时间复杂度
  • 原文地址:https://www.cnblogs.com/rsapaper/p/9746782.html
Copyright © 2011-2022 走看看