render_pdf
Converts one CV/cover-letter HTML file into a PDF using headless Chrome, then checks exit code and PDF page count to detect silent failures. Call once per file, not in a batch loop.
Instructions
Renders one CV/cover-letter HTML file to PDF via headless Chrome, using the exact flags known not to hang or silently drop output. Checks both the exit code and the actual PDF page count — call this once per file, never in a batch loop on the same Chrome profile.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pdf_path | No | Output PDF path; defaults to the HTML path with .pdf. | |
| html_path | Yes | Path to the source HTML file. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||