convert_with_pandoc_advanced
Convert files using Pandoc with filters, metadata, variables, and custom PDF engine. Specify input and output paths.
Instructions
Advanced Pandoc conversion with filters, defaults, metadata, variables, and custom PDF engine.
Args: input_path: Input file path output_path: Output file path from_format: Pandoc input format (optional, auto-detect by extension) to_format: Pandoc output format (optional, auto-detect by extension) filters: List of Pandoc filters to apply defaults_file: Path to defaults YAML file metadata: Metadata key/value pairs (--metadata key=value) variables: Template variables (--variable key=value) reference_doc: Reference docx/pptx for styling template: Pandoc template path pdf_engine: PDF engine (e.g., xelatex) extra_args: Additional Pandoc args standalone: Produce standalone document
Returns: Output path or error message
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filters | No | ||
| metadata | No | ||
| template | No | ||
| to_format | No | ||
| variables | No | ||
| extra_args | No | ||
| input_path | Yes | ||
| pdf_engine | No | ||
| standalone | No | ||
| from_format | No | ||
| output_path | Yes | ||
| defaults_file | No | ||
| reference_doc | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |