convert_pdf_to_word
Converts a local PDF file to Word (DOCX) format by specifying its file path. Supports quality selection and OCR when needed.
Instructions
Convert a local PDF file to Word (DOCX) using the PDF4me ConvertPdfToWord API. Provide the file path to the PDF. Options: quality (Draft/High), merge_all_sheets, language, OCR when needed, and optional output path. Output is always DOCX.
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": {
"file_path": "<file_path>"
},
"name": "convert_pdf_to_word"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| language | No | Document language hint for OCR/extraction. | English |
| file_path | Yes | Local path to the PDF file to convert. | |
| output_dir | No | ||
| quality_type | No | Draft or High quality for extraction. | Draft |
| ocr_when_needed | No | Enable OCR when the API determines it is needed. | |
| merge_all_sheets | No | Merge content into a single output when supported. | |
| output_file_name | No |