html_to_pdf
Convert local HTML files to PDF format. Ideal for saving web pages or HTML documents as portable PDFs.
Instructions
Convert a local HTML file (.html or .htm) to a PDF. The HTML is rendered server-side; external assets referenced by the file may not be fetched.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input_file | Yes | Path to an .html or .htm file to convert. | |
| output_path | No | Optional output path. If it ends with the expected extension, the file is written there. If it is a directory, the file is placed inside with a timestamped name. Defaults to the same directory as the first input. |