compile_and_preview
Compile a LaTeX resume to PDF and return a preview image. Use an existing .tex file or generate from resume data with a chosen template.
Instructions
Compile a LaTeX resume to PDF and return a preview image.
If tex_path is provided, compiles that file directly. Otherwise generates from resume data using the specified template, then compiles.
Args: tex_path: Path to existing .tex file. If None, generates from data first. output_filename: Base filename for output files (used when generating). template_name: Template style when generating ('modern', 'classic', 'minimal'). dpi: Resolution for preview image (default 200).
Returns: Image of the rendered resume, or error JSON string.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tex_path | No | ||
| output_filename | No | resume | |
| template_name | No | modern | |
| dpi | No |