Pdf2htmlwindows安装与使用


1.下载http://soft.rubypdf.com/software/pdf2htmlex-windows-version

两个红框的任何一个都行

解决pdf2htmlex命令执行 cannot open manifest 或 cannot ... for writing 问题

2.解压并复制到想安装的目录(解压就是安装了,像tomcat一样的使用方式)


3.配置环境变量,把pdf2htmlex的安装目录加入到path


4.cmd命令窗口运行pdf2htmlex显示出相应信息,说明安装正确。



问题来了!搞了我一天多时间。

解决pdf2htmlex命令执行 cannot open manifest 或 cannot ... for writing 问题

而安装目录下有个data文件夹,里面是有manifest文件的。

而如何切换到安装目录下运行命令是正确的

解决pdf2htmlex命令执行 cannot open manifest 或 cannot ... for writing 问题

去更换了Path的值还是不行。

最后无意间输入pdf2htmlex-version

发现了真实原因:

解决pdf2htmlex命令执行 cannot open manifest 或 cannot ... for writing 问题


解决pdf2htmlex命令执行 cannot open manifest 或 cannot ... for writing 问题

原因命令在哪个文件夹执行,就会到哪个文件夹下去找data文件夹里的manifest文件。我觉得这是这个工具的bug。这样的话,配置path还有什么用啊。所以当前是用java代码运行命令pdf2htmlex,那应该默认会是像打开cmd窗口。则把安装目录下的data文件夹复制到C:\Users\Administrator\下面。

再次运行命令

解决pdf2htmlex命令执行 cannot open manifest 或 cannot ... for writing 问题

一切正常,转换的html也完美。


相关文章:

  • 2021-11-02
  • 2021-07-23
  • 2021-09-13
  • 2022-12-23
  • 2021-12-11
  • 2022-12-23
  • 2021-07-24
猜你喜欢
  • 2021-10-16
  • 2022-12-23
  • 2021-08-06
  • 2022-12-23
  • 2021-11-18
  • 2022-12-23
  • 2021-11-27
相关资源
相似解决方案