Skip to content

feat: export analysis reports as PDF (save_pdf) #163

@luceinaltis

Description

@luceinaltis

Context

PR #144 attempted this but was based on a pre-refactor codebase and was closed. The existing ReportExporter already has save_markdown() and save_json(). The CLI already has save and save json REPL commands. Only save_pdf() is missing.

Goal

Add PDF export capability to ReportExporter using fpdf2.

Scope

  • Add ReportExporter.save_pdf(intent, analysis, response_text) -> Path method
  • Add save_last_report(fmt="pdf") branch in ConversationEngine
  • Add save pdf / /save pdf REPL commands in CLI
  • Register fpdf2>=2.7.0 as optional [pdf] dependency in pyproject.toml
  • Tests for PDF generation (verify file created, non-zero size, contains expected text)

Estimate

~50-80 lines of new code. Small, self-contained task.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions