我使用了这个 Aptfile:
fonts-liberation
libreoffice-base-core
libreoffice-calc
libreoffice-writer
libreoffice
libpython2.7
pdf2htmlex
poppler-utils
并且安装成功完成。我什至在 heroku bash 中检查了 pdf2htmlEX 的版本。
pdf2htmlEX --version
pdf2htmlEX version 0.14.6
Copyright 2012-2015 Lu Wang <coolwanglu@gmail.com> and other contributors
Libraries:
poppler 0.41.0
libfontforge 20120731
Default data-dir: /usr/share/pdf2htmlEX
Supported image format: png jpg
但是当我尝试转换真正的 PDF 文档时,我收到了这个错误:
Error: Cannot open the manifest file
我在其他网站上发现我需要运行“make install”来解决这个问题,但不确定 Heroku 是否可以。
任何帮助将不胜感激。谢谢