← 返回
未分类 Key 中文

dianju-ofd-tools

Convert local PDF and OFD files to each other and extract text content from OFD files with temporary download links provided.
本地PDF与OFD文件互转,提取OFD文本内容并提供临时下载链接。
stmmer stmmer 来源
未分类 clawhub v1.0.0 1 版本 100000 Key: 需要
★ 0
Stars
📥 326
下载
💾 0
安装
1
版本
#latest

概述

```

name: dianju-ofd-tools

description: An OFD document processing tool that can convert local PDF and OFD files to each other and extract content from OFD files.

version:1.0.0

email:support-ofd@dianju.com

```

# OFD Tools Skill

Quick Start

npx dianju-ofd-tools --APP_ID=xxx --APP_KEY=xxx --API_URL=http://ip:port/DCS

APP_ID:appid

APP_KEY:appkey

API_URL:The system API address

## Features

### 1. PDF to OFD Conversion

  • Tool Name: pdf_to_ofd
  • Description: Convert local PDF files to OFD format
  • Parameters:

```json

{

"filePath": "string" // Absolute path to local PDF file

}

```

  • Returns: Temporary download link for the generated OFD file

### 2. OFD to PDF Conversion

  • Tool Name: ofd_to_pdf
  • Description: Convert local OFD files to PDF format
  • Parameters:

```json

{

"filePath": "string" // Absolute path to local OFD file

}

```

  • Returns: Temporary download link for the generated PDF file

### 3. OFD Content Extraction

  • Tool Name: get_ofd_content
  • Description: Extract text content from local OFD files
  • Parameters:

```json

{

"filePath": "string" // Absolute path to local OFD file

}

```

  • Returns: JSON array of extracted text content

## Usage Examples

### Example 1: Convert PDF to OFD

```bash

ofd-tools pdf_to_ofd --filePath "/path/to/input.pdf"

```

### Example 2: Convert OFD to PDF

```bash

ofd-tools ofd_to_pdf --filePath "/path/to/input.ofd"

```

### Example 3: Extract OFD Content

```bash

ofd-tools get_ofd_content --filePath "/path/to/input.ofd"

```

## Notes

  1. File Paths: Ensure the local file path is correct (absolute path recommended for non-current directory files).
  2. Temporary Links: The ofd_to_pdf and pdf_to_ofd services return temporary download links for converted files; check link validity before use.
  3. Link Expiry: OFD download links may expire after a set time; download the file promptly.
  4. File Integrity: Always verify the integrity of the generated OFD file before sharing or using it.
  5. Performance: Large files may take longer to process; avoid interrupting the conversion process.
  6. Logging: Enable logging with ENABLE_LOGGING=true for troubleshooting; logs can be output to files with LOG_TO_FILE=true.

## Error Handling

  • File Not Found: Ensure the file path is correct and the file exists
  • Permission Denied: Check file permissions and ensure the tool has read access
  • Conversion Failed: Verify the input file is valid and not corrupted
  • Network Issues: Check internet connectivity when using external conversion services

## Support

For issues or questions, contact support at support-ofd@dianju.com.

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-07 09:20 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

office-efficiency

Nano Pdf

steipete
使用nano-pdf CLI通过自然语言指令编辑PDF
★ 281 📥 117,214
office-efficiency

Word / DOCX

ivangdavila
创建、检查和编辑 Microsoft Word 文档及 DOCX 文件,支持样式、编号、修订记录、表格、分节符及兼容性检查等功能。
★ 469 📥 156,486
office-efficiency

Gog

steipete
Google Workspace 命令行工具,支持 Gmail、日历、云端硬盘、通讯录、表格和文档。
★ 934 📥 187,552