export_chart_pdf
Export a Plotly figure to PDF. Specify the figure, output filename, and custom page dimensions for a high-quality document.
Instructions
Export a chart to PDF. Requires kaleido (pip install kaleido).
Returns: {filepath, format, width, height} or {error} if kaleido missing
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| width | No | Page width in pixels | |
| figure | Yes | Plotly figure dict from create_chart() | |
| height | No | Page height in pixels | |
| filename | No | Output name (without .pdf) | chart |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||