teppokoivula / search-engine-pdf-indexer
ProcessWire CMS/CMF 模块 SearchEngine 的可选和实验性 PDF 文件索引附加组件
Requires
- php: >=7.4
- smalot/pdfparser: ^2.2
- spatie/pdf-to-text: ^1.52
- symfony/process: ^5.0
- wireframe-framework/processwire-composer-installer: ^1.0.0
This package is auto-updated.
Last update: 2024-09-18 23:11:30 UTC
README
本模块为 SearchEngine 模块添加(实验性)PDF 索引支持。
请注意,为了解析 PDF 文件,我们需要安装一些第三方依赖项。目前支持两个 PDF 解析库:smalot/pdfparser 和 spatie/pdf-to-text。当您通过 Composer 安装此模块时,这些库会自动安装,但如果您通过文件上传或使用管理员中的模块管理器安装模块,请在安装后运行 composer install
命令。
另外,spatie/pdf-to-text 需要 pdftotext CLI 工具,该工具需要在您的操作系统上安装。有关详细信息,请参阅 spatie/pdf-to-text 的 GitHub 存储库:https://github.com/spatie/pdf-to-text。
用法
警告:此模块目前被认为是高度实验性的。安装它可能会在您的网站上引起致命错误。请在安装模块和/或启用它之前备份您的数据。如果您遇到任何问题,请在 https://github.com/teppokoivula/SearchEnginePdfIndexer/issues/new 上创建 GitHub 问题。
- 安装和配置 SearchEngine
- 安装 SearchEnginePdfIndexer,最好是使用 Composer (
composer require teppokoivula/search-engine-pdf-indexer
) - 如果您通过模块管理器或文件上传安装了 SearchEnginePdfIndexer,请在安装后运行
composer install
命令 - 配置 SearchEnginePdfIndexer
安装
此模块可以通过将 SearchEnginePdfIndexer 目录下载或克隆到您的网站的 /site/modules/ 目录中来进行安装,但推荐使用 Composer 安装: composer require teppokoivula/search-engine-pdf-indexer
。Composer 安装会自动处理依赖关系,这使得后续步骤更容易。
许可
本项目采用 Mozilla Public License 版本 2.0 许可。有关与该模块交互的任何第三方依赖项的许可,请参阅各自的 README 或 LICENSE 文件。