我一直在试图在Plone上安装document.viewer,它允许我查看内嵌的pdf文档,到目前为止我能够转换pdf文件并查看它们,但是当我尝试转换.doc .ppt文件给出以下错误,我的操作系统是Fedora。在Plone中安装文档查看器
Traceback (most recent call last):
File "/usr/local/Plone/buildout-cache/eggs/collective.documentviewer-2.2-py2.7.egg/collective/documentviewer/convert.py", line 530, in __call__
pages = self.run_conversion()
File "/usr/local/Plone/buildout-cache/eggs/collective.documentviewer-2.2-py2.7.egg/collective/documentviewer/convert.py", line 379, in run_conversion
return docsplit.convert(self.storage_dir, **args)
File "/usr/local/Plone/buildout-cache/eggs/collective.documentviewer-2.2-py2.7.egg/collective/documentviewer/convert.py", line 285, in convert
self.convert_to_pdf(path, filename, output_dir)
File "/usr/local/Plone/buildout-cache/eggs/collective.documentviewer-2.2-py2.7.egg/collective/documentviewer/convert.py", line 256, in convert_to_pdf
self._run_command(cmd)
File "/usr/local/Plone/buildout-cache/eggs/collective.documentviewer-2.2-py2.7.egg/collective/documentviewer/convert.py", line 118, in _run_command
raise Exception(error)
Exception: Command
/usr/local/bin/docsplit pdf /tmp/tmp9c0S1q/dump.doc --output /tmp/tmp9c0S1q
finished with return code
1
and output:
Error: Could not find or load main class .usr.lib.libreoffice
请注意,我已经安装了openoffice,并且在usr/lib文件夹中有一个名为libreoffice的文件夹。 Plone作为一个独立的管理权限来安装。我该如何解决这个问题?
手动尝试日志中的命令并查看可能出现的错误与docsplit。 – vangheem 2013-03-11 19:19:19
看看这个问题:https://github.com/collective/collective.documentviewer/issues/11希望这可以帮助你解决问题。 – vangheem 2013-03-12 21:32:31