convert_markdown_file_to_pdf
Convert Markdown files to PDF documents with customizable formatting options including output size and PDF engine selection.
Instructions
Convert a Markdown file to PDF with customizable formatting options.
Args: working_dir: Absolute path to the working directory for file operations markdown_file_path: Path to the markdown file relative to working_dir output_filename: Name of the output PDF file relative to working_dir (if not provided, uses same name as input with .pdf extension) 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_file_path | Yes | ||
| output_filename | No | ||
| size | No | l | |
| pdf_engine | No | weasyprint |