alefba_download_pdf
Download the OCR-analyzed document as a searchable PDF, with options to adjust quality, color mode, and embedded image format.
Instructions
Download the analyzed document as a searchable PDF. دریافت سند به صورت پیدیاف قابلجستوجو. Calls POST /api/download_pdf/. quality controls image quality (0-100), color toggles colour vs. grayscale, and img_format (png|jpg) sets the embedded image format. Returns download info, or the saved path when save_path is provided. Optional name of the configured Alefba instance to target. Omit to use the default instance.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"document_url": "<document_url>"
},
"name": "alefba_download_pdf"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| document_url | Yes | ||
| quality | No | ||
| color | No | ||
| img_format | No | ||
| save_path | No | ||
| instance | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||