使用Plone4和Windows索引pdf和word文档

时间:2011-04-26 16:20:16

标签: pdf indexing module ms-word plone

我遵循了Plone(4)(和Windows 2008)上的pdf索引说明,这是为Plone3编写的:

http://plone.org/documentation/kb/enable-indexing-of-pdf-and-word-docs-with-windows-in-five-steps-occurs-three-minutes-without-problems

当我尝试添加模块时,我在步骤“添加转换;输入ID:pdf_to_text”时收到错误:Products.PortalTransforms.transforms.pdf_to_text。

以下是报告:

Traceback (innermost last):
  Module ZPublisher.Publish, line 127, in publish
  Module ZPublisher.mapply, line 77, in mapply
  Module ZPublisher.Publish, line 47, in call_object
  Module Products.PortalTransforms.TransformEngine, line 487, in manage_addTransform
  Module Products.PortalTransforms.TransformEngine, line 254, in _mapTransform
  Module Products.MimetypesRegistry.MimeTypesRegistry, line 220, in lookup
   - __traceback_info__: ("'BROKEN'", 'BROKEN')
  Module Products.MimetypesRegistry.MimeTypesRegistry, line 457, in split
MimeTypeException: Malformed MIME type (BROKEN)

1 个答案:

答案 0 :(得分:1)

嗯, 非常老。

在Windows上,如果安装了MS Office,则在Plone 4中索引“Just Works”。 PDF仍然需要xpdf。

你的PATH上有pdftotext.exe吗?如果不是,它将无法工作。请记住,如果您已将其添加到系统范围的环境中,您仍然必须停止/启动Zope以使Zope进程获取已更改的PATH:在前台运行Zope,从 know 路径上有pdftotext,看看会发生什么。