mirror of
https://github.com/fsecada01/Pygentic-AI.git
synced 2026-05-12 04:04:57 +00:00
feat(pdf): move executive summary to top of report
- Reorder PDF sections to place Executive Summary first - Executive Summary now appears immediately after header - Added extra spacing between Executive Summary and SWOT sections - All other sections (Strengths, Weaknesses, Opportunities, Threats) remain in same order New structure: 1. Header 2. Executive Summary ⬆️ (moved from bottom) 3. SWOT Analysis sections (S, W, O, T) Improves report readability by presenting key insights first. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
@ -298,7 +298,12 @@ class SwotPDFGenerator:
|
||||
# Header
|
||||
self._add_header(story)
|
||||
|
||||
# Executive Summary (placed first for prominence)
|
||||
story.append(Spacer(1, 0.2 * inch))
|
||||
self._add_executive_summary(story)
|
||||
|
||||
# SWOT Categories
|
||||
story.append(Spacer(1, 0.3 * inch))
|
||||
story.append(Paragraph("SWOT Analysis", self.styles["SectionHeader"]))
|
||||
story.append(Spacer(1, 0.15 * inch))
|
||||
|
||||
@ -318,10 +323,6 @@ class SwotPDFGenerator:
|
||||
story, "Threats", self.analysis.threats, SWOT_THREAT
|
||||
)
|
||||
|
||||
# Executive Summary
|
||||
story.append(Spacer(1, 0.2 * inch))
|
||||
self._add_executive_summary(story)
|
||||
|
||||
# Build PDF
|
||||
doc.build(story)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user