dianju-ofd-tools

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

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "dianju-ofd-tools" with this command: npx skills add stmmer/dianju-ofd-tools

  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:
    {
      "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:
    {
      "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:
    {
      "filePath": "string" // Absolute path to local OFD file
    }
    
  • Returns: JSON array of extracted text content

Usage Examples

Example 1: Convert PDF to OFD

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

Example 2: Convert OFD to PDF

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

Example 3: Extract OFD Content

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.

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

gitlab-mr-reviewer

当需要审核 GitLab 合并请求、检查 MR diff 风险、发布 GitLab 审查评论、执行 approve/request changes,或发送 MR 审查通知时使用。

Registry SourceRecently Updated
1490whrime
General

Voice Transcriber Toolkit

Voice-to-Text Transcription Toolkit - 语音识别转文字,支持Whisper/Vosk引擎,批量处理,字幕导出 | Speech recognition & transcription with Whisper/Vosk engines, batch processing, su...

Registry SourceRecently Updated
General

Gigo Lobster Taster

🦞 GIGO · gigo-lobster-taster: 正式试吃模式:跑完整评测,默认上传云端、生成个人结果页并进入排行榜。 Triggers: 试吃我的龙虾 / 品鉴我的龙虾 / lobster taste / lobster taster.

Registry SourceRecently Updated
General

Gigo Lobster Local

🦞 GIGO · gigo-lobster-local: 本地模式:跑完整评测,但不上云、不注册个人结果页,证书二维码回到官网首页。 Triggers: 本地试吃龙虾 / 离线试吃龙虾 / local lobster taste / offline lobster taste.

Registry SourceRecently Updated