szhgoldeneye
V2EX  ›  问与答

有人用 java 调用过 pdf2htmlEX 吗

  •  
  •   szhgoldeneye · Jun 4, 2016 · 2491 views
    This topic created in 3677 days ago, the information mentioned may be changed or developed.

    在 cmd 下运行命令能将 pdf 转换为 html

    但在 java 里使用

    String command = "D:\\pdf2htmlEX-v1.0\\pdf2htmlEX.exe D:\\v.pdf hello.html";
    Runtime rt = Runtime.getRuntime();  
    Process p = rt.exec(command);  
    

    就不太行

    有 V 友用过吗,或者还有什么比较好的实现在线预览 pdf 文件的方法

    1 replies    2016-06-05 01:33:52 +08:00
    Tink
        1
    Tink  
    PRO
       Jun 5, 2016 via iPhone
    之前做过类似的项目

    解决方案有多种,付费的话搜一下有个公司在做这个,加载效果很不错

    免费的话我之前是用 flash 加载的,因为那个项目还要支持 doc 和 xls
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1368 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 17:01 · PVG 01:01 · LAX 10:01 · JFK 13:01
    ♥ Do have faith in what you're doing.