convert_file
Convert or process files with GuruPDF: transform between 100+ formats (PDF, Word, Excel, images, ebooks) or apply PDF tools (compress, merge, split, protect, OCR). Saves result next to input.
Instructions
Convert or process a local file (or URL) with GuruPDF. Convert between 100+ formats (PDF ⇄ Word/Excel/PowerPoint, images, ebooks, etc.) or run a PDF tool (compress, merge, split, rotate, protect, watermark, OCR…). Saves the result next to the input and returns the path.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | Yes | Absolute path to a local file (or several paths for merge), or an https URL for url-to-pdf. | |
| to | Yes | Target format (e.g. 'pdf', 'docx', 'png') OR a tool slug (e.g. 'compress-pdf', 'merge-pdf', 'protect-pdf'). | |
| output_dir | No | Folder to save the result in. Defaults to the input file's folder. | |
| options | No | Tool-specific options, e.g. { password, page_range, rotation, watermark_text }. | |
| wait | No | Wait for the result (default true). If false, returns a job id to check with get_status. |