text
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
text
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
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
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
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
bash
ofd-tools pdf_to_ofd --filePath "/path/to/input.pdf"
bash
ofd-tools ofd_to_pdf --filePath "/path/to/input.ofd"
bash
ofd-tools get_ofd_content --filePath "/path/to/input.ofd"
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.For issues or questions, contact support at support-ofd@dianju.com.