首页 > 解决方案 > 在heroku上安装pdf2htmlEX

问题描述

我使用了这个 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 是否可以。

任何帮助将不胜感激。谢谢

标签: ruby-on-railsherokupdf2htmlex

解决方案


pdf2htmlEX 上的类似答案

heroki-18上,我遇到了类似的问题,并data-dir在转换时通过传递解决了它。

如果您是 ruby​​,则可以将Kristin gem 与master分支一起使用


推荐阅读