Applied math & useful tools

PDF processing / student reports

ICTE Marks · Results pipeline

A worker-driven pipeline that watches for marks PDFs, validates imports, notifies students, and renders their results and average as readable images.

System flow

  1. File watcher
  2. Parse & validate
  3. Review & save
  4. Reports & notifications

The problem

Marks arrive as PDF documents with layouts and text that are not always consistent. Students need their own results in a clear format, while corrections and new imports need to remain traceable.

The build

I built the file watcher, parsing and validation workflow, PostgreSQL records, review tools, student notifications, and image report rendering. The Telegram bot is the access point; import, reporting, and notification work run in separate services and workers.

Engineering notes

PDF input needs a review boundary

The watcher downloads files for a parsing worker. Imports are staged and validated before approval, so parsing errors and inconsistent mark totals can be reviewed instead of silently becoming published results.

A report is a generated artifact

HTML templates are rendered to PNG through a browser. Content hashes identify unchanged reports so cached photos can be reused, while the result layout keeps subjects, marks, and the average readable together.

Background work and controlled publishing

Imports, report generation, and notifications have separate responsibilities. Admins can approve quietly or notify students, with stored marks, archives, and mutation logs independent of the chat interface.

What it includes

  • Final and practical marks, subject collections, and archives.
  • Import review, error correction, and an audit trail for administrative changes.
  • Rendered images showing a student’s marks and total average.
Back to the project index