Skip to content

Question Paper Export as Printable PDF #9

Description

@ankit2101

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

  • 'Download Question Paper' button appears for chapters with cached questions
  • PDF is formatted with Section A / B / C layout
  • Mark values shown per question
  • Answer key is a separate page at the end (key points listed)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions