Generate Student Reports in Rust with HTML Templates and PDF Export
What if student report cards were generated like web pages first, and only then exported as PDFs?
The latest post on Techn0tz explores that workflow in the Teacher Assistant App using Rust, egui, and PostgreSQL. Instead of generating PDFs directly, the report pipeline starts with reusable HTML templates. Student-specific values are inserted through placeholder replacement, the generated reports are organized into class-and-exam folders, and the final HTML output is rendered into PDF.
Workflow Steps
The post covers:
- Building a reusable HTML report template
- Generating one report per student from the selected class
- Replacing placeholders with student details, totals, and percentages
- Sanitizing file names for safe report export on Windows
- Organizing reports into class-and-exam specific folders
- Converting generated HTML reports into PDFs
- Opening the exported reports folder directly from the app
๐ Read the full workflow here:
๐ Html to Pdf export workflow
If you read it, Iโd love to know what part of the workflow feels most useful - the template design, the HTML-to-PDF export flow, or the report organization side.
- Manjusha (Techn0tz)
Comments
No comments yet. Start the discussion.