Convert PDF to Other Format
document.convert.from_pdfConvert PDF to Word (DOCX), Excel (XLSX), PowerPoint (PPTX), plain text (TXT), or images (JPG/PNG per page). Optional page range selection. Provide PDF as URL (ConvertAPI)
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": {
"source_url": "<source_url>",
"to_format": "<to_format>"
},
"name": "document.convert.from_pdf"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pages | No | Page range to convert (e.g. "1-5", "1,3,5", default "all") | |
| to_format | Yes | Target format to convert PDF into | |
| source_url | Yes | Publicly accessible URL of the PDF to convert (e.g. "https://example.com/doc.pdf") |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | Present only when the call failed. Includes error code, message, request_id, and any provider-specific extras. | |
| result | No | Tool response payload. Shape varies per tool — consult the tool description and inputSchema. May be an object, array, string, or number depending on the upstream provider response. |