newOpenEyes
V2EX  ›  问与答

求助各位大佬一个 Java 中把 HTML 转化为 docx 的方法

  •  
  •   newOpenEyes · Jul 31, 2024 · 2071 views
    This topic created in 826 days ago, the information mentioned may be changed or developed.
    需要可以保留原有样式和格式
    1 replies  •  2024-07-31 14:49:29 +08:00
    evan1
    evan1
    Jul 31, 2024
    1
    https://github.com/gaofeigr/WordEdit

    巧了,之前遇到过一样的需求。

    这个对 html 的格式有比较高的要求,每个标签都必须有对应的闭合标签,比如<a></a>,不允许<a/>。
    其它的就没什么要求了。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1436 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 35ms · UTC 22:43 · PVG 06:43 · LAX 14:43 · JFK 17:43
    ♥ Do have faith in what you're doing.