forked from 0xWheatyz/SPARC
Export analysis reports as PDF or CSV from the dashboard #841
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Users currently have no way to download patent analysis results. Adding export functionality (PDF report or CSV data dump) would make SPARC useful in offline and presentation contexts.
Roadmap Reference
P3 Nice to Have -- Export analysis reports. See ROADMAP.md.
What to Do
Backend: Add a GET /jobs/{job_id}/export?format=pdf|csv endpoint. For CSV: serialize job results with Python csv module. For PDF: use reportlab or weasyprint to render a formatted report. Return the file with appropriate Content-Disposition: attachment headers.
Frontend: Add Export CSV and Export PDF buttons to the job results view. Trigger a download via window.URL.createObjectURL on the blob response.
Acceptance Criteria
Resolved by PR #171 (PDF export) and PR #60 (CSV export). Reports can be exported as PDF or CSV.