```
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
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
pdf_to_ofd
```json
{
"filePath": "string" // Absolute path to local PDF file
}
```
### 2. OFD to PDF Conversion
ofd_to_pdf
```json
{
"filePath": "string" // Absolute path to local OFD file
}
```
### 3. OFD Content Extraction
get_ofd_content
```json
{
"filePath": "string" // Absolute path to local OFD file
}
```
## 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
ofd_to_pdf and pdf_to_ofd services return temporary download links for converted files; check link validity before use.
ENABLE_LOGGING=true for troubleshooting; logs can be output to files with LOG_TO_FILE=true.
## Error Handling
## Support
For issues or questions, contact support at support-ofd@dianju.com.
共 1 个版本