phizumi
V2EX  ›  2019

[求教] Python 有没有将 html 转成 docx 的比较好的方案(主要是对表格的支持)。

  •  
  •   phizumi · Apr 10, 2019 · 3586 views
    This topic created in 2766 days ago, the information mentioned may be changed or developed.

    目前知道的三种方式,pandoc, html2docx, pydocx。 前两个保留不了表格的格式。pydocx 的案例基本都是 docx 转 html 的;

    1 replies  •  2019-04-10 16:28:02 +08:00
    vicalloy
    vicalloy
    Apr 10, 2019
    1
    https://github.com/unoconv/unoconv 这个应当是最成熟可靠的
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1312 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 21:22 · PVG 05:22 · LAX 13:22 · JFK 16:22
    ♥ Do have faith in what you're doing.