Generate PDF Report
generate_pdf_reportRender client-facing PDF reports with Vedic astrology charts, planet table, and dasha timeline from a kundali. Supports Hindi/English and optional transit, panchang sections.
Instructions
Render a client-facing PDF report (cover, Lagna/Chandra/Navamsa charts, planet table, dasha timeline) from a kundali plus optional sections. renderer='html' (default) uses Chromium via Playwright for polished Devanagari shaping; renderer='reportlab' is a pure-Python backend for environments without Chromium (such as the default Docker image). Returns the report record with the path of the written PDF.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dasha | No | Optional dasha JSON from calculate_dasha; adds the dasha timeline section. | |
| gochar | No | Optional gochar JSON from calculate_gochar; adds the transit section. | |
| db_path | No | SQLite store to record the report in; when omitted the report is only written to disk. | |
| kundali | Yes | Kundali JSON exactly as returned by the calculate_kundali tool. | |
| language | No | Report language: 'hin' or 'hi' for Hindi (Devanagari), 'en' for English. | hin |
| panchang | No | Optional panchang JSON from calculate_panchang; adds the panchang section. | |
| renderer | No | 'html' renders via Chromium/Playwright (best Devanagari shaping); 'reportlab' needs no browser. | html |
| template | No | 'standard' report, or 'pandit_v1' — the premium Hindi janma-patrika layout (requires renderer='html'). | standard |
| client_id | No | Client identifier the report is filed under. | anonymous |
| output_dir | No | Directory the report file is written into (default: data/reports). | |
| client_name | No | Client/native name shown on the PDF cover page |