# easytouch-plugin-doc-preview **Repository Path**: easytouchplugins/easytouch-plugin-doc-preview ## Basic Information - **Project Name**: easytouch-plugin-doc-preview - **Description**: easytouch-plugin-doc-preview - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2026-08-05 - **Last Updated**: 2026-08-14 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # EasyTouch Plugin: 文档解析与预览插件 文档解析与预览插件,支持 PDF/Word/Excel 等多种文档格式的解析与预览。 ## 插件信息 | 属性 | 值 | |------|-----| | plugin_id (Flutter) | `client.com.easytouch.doc_preview` | | plugin_id (Rust) | `server.com.easytouch.doc_preview` | | 版本 | 0.1.0 | | 分类 | general (Flutter) / business (Rust) | | UI 渲染模式 | custom | ## 目录结构 ``` ├── client/ # Client 端资源包(manifest + ui-schema + web) │ ├── lib/ │ ├── pubspec.yaml │ └── manifest.json ├── server/ # Server 端(Rust dylib) │ ├── src/ │ ├── Cargo.toml │ └── manifest.json └── README.md ``` ## Rust API | 方法 | 说明 | |------|------| | `parse_document` | 解析文档内容,支持 PDF/Word/Excel | | `generate_preview` | 生成文档预览 | ## Flutter 端 提供文档列表展示、文档上传与文档预览界面。 ## Manifest 管理 > **禁止手工编辑 manifest.json**。manifest.json 由 `etk` 工具自动生成和更新。 ### Rust 端 ```bash cd rust && etk build # 扫描 #[plugin_method] 标注,生成 manifest.json cd rust && etk validate # 校验 manifest.json schema cd rust && etk pack # 生成市场压缩包 ``` ### Flutter 端 ```bash cd flutter && etk build # 生成 manifest.json cd flutter && etk validate # 校验 manifest.json ``` ## 依赖 - **SDK**: easytouch-sdk ## 开发 ```bash # Rust 端构建 cd rust && cargo build # Flutter 端构建 cd flutter && flutter build ``` ## 许可证 MIT