Summary
Let admin export the AI-generated question set for any chapter as a formatted, printable PDF with the CBSE three-section layout (Section A / B / C), mark allocations, and question numbering.
Why
Teachers use digital question banks to generate offline test papers. This makes the AI question generation valuable beyond the digital test — it doubles as a lesson planning and paper-setting tool.
Implementation Notes
- Backend: use
reportlab or weasyprint to render the cached question JSON to PDF
- New endpoint:
GET /api/admin/chapter/<id>/question-paper
- Frontend: 'Download Question Paper' button in the Content tab per chapter (only if questions are cached)
- Include: school name placeholder, chapter name, board, grade, subject, date, three sections
Acceptance Criteria
Summary
Let admin export the AI-generated question set for any chapter as a formatted, printable PDF with the CBSE three-section layout (Section A / B / C), mark allocations, and question numbering.
Why
Teachers use digital question banks to generate offline test papers. This makes the AI question generation valuable beyond the digital test — it doubles as a lesson planning and paper-setting tool.
Implementation Notes
reportlaborweasyprintto render the cached question JSON to PDFGET /api/admin/chapter/<id>/question-paperAcceptance Criteria