convert_markdown_to_pdf
Convert Markdown content to PDF documents with customizable formatting options, output sizes, and PDF engine selection.
Instructions
Convert Markdown content to PDF with customizable formatting options.
Args: working_dir: Absolute path to the working directory for file operations markdown_content: The markdown content to convert to PDF output_filename: Name of the output PDF file relative to working_dir (default: output.pdf) size: Output size - 's' (small/compact), 'm' (medium), 'l' (large/detailed) (default: l) pdf_engine: PDF engine to use - weasyprint or pdflatex (default: weasyprint)
Returns: A message indicating success or failure of the conversion
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| working_dir | Yes | ||
| markdown_content | Yes | ||
| output_filename | No | output.pdf | |
| size | No | l | |
| pdf_engine | No | weasyprint |