使用 Plone4 和 Windows 对 pdf 和 word 文档建立索引

发布于 2024-11-04 01:57:48 字数 808 浏览 3 评论 0原文

我遵循了在 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:

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

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

老子叫无熙 2024-11-11 01:57:48

嗯,那已经很古老了。

在 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文