使用 Plone4 和 Windows 对 pdf 和 word 文档建立索引
我遵循了在 Plone(4) (和 Windows 2008)上索引 pdf 的说明,该说明最初是为 Plone3 编写的:
我在第5步“添加转换;输入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)
I followed an instruction for indexing pdf on Plone(4) (and Windows 2008) , that was originaly written for Plone3:
I got an error on he fiths step "Add Transform; Enter in ID: pdf_to_text", when I tried to add the Module: Products.PortalTransforms.transforms.pdf_to_text.
Here is the Report:
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)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
嗯,那已经很古老了。
在 Windows 上,如果您安装了 MS Office,则在 Plone 4 中索引“Just Works”一词。 PDF仍然需要xpdf。
pdftotext.exe 在您的路径中吗?如果不是的话,它就不会起作用。请记住,如果您已将其添加到系统范围的环境中,您仍然需要停止/启动 Zope 以使 Zope 进程选择更改后的路径:从您的命令窗口在前台运行 Zope >知道路径上有 pdftotext,看看会发生什么。
Well, that is very old.
On Windows, the word indexing "Just Works" in Plone 4 if you have MS Office installed. PDF still needs xpdf.
Is pdftotext.exe on your PATH? It won't work if it isn't. Remember, if you have added it to the system-wide environment, you are still going to have to stop/start Zope to have the Zope process pick up the changed PATH: run Zope in the foreground, from a command window that you know has pdftotext on the path, and see what happens.