Skip to content

Re-add safe quiz attempt snapshots - #160

Merged
D-VR merged 2 commits into
masterfrom
re-add-quiz-rendering
Jul 5, 2026
Merged

D-VR merged 2 commits into
masterfrom
re-add-quiz-rendering

Conversation

@D-VR

@D-VR D-VR commented Jul 5, 2026

Copy link
Copy Markdown
Collaborator

Re-adds quiz review export by saving self-contained offline HTML snapshots by default, with optional PDF generation through a local Chrome/Chromium/Edge browser (Firefox currently does not support pdf printing).

Snapshots strip active/network content, inline safe Moodle assets, and replace the old pdfkit/wkhtmltopdf path.

Closes #132 and closes #55.

D-VR added 2 commits July 5, 2026 16:10
…nally rendering it to a pdf with chromium

Add quiz snapshotting as its own module, add http_utils.py
@D-VR D-VR added enhancement New feature or request maintenance Chore or refactor security For potential security issues or general hardening. labels Jul 5, 2026
@D-VR

D-VR commented Jul 5, 2026

Copy link
Copy Markdown
Collaborator Author

I tested some of my previous e-test submissions and it seems to be doing a better job than the old solution, i.e. it renders pictures correctly now.

Of course there is likely to be edge cases where it breaks, if you encounter those, please open a issue and provide an example!

@D-VR
D-VR merged commit de042e9 into master Jul 5, 2026
4 checks passed
@D-VR
D-VR deleted the re-add-quiz-rendering branch July 5, 2026 15:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request maintenance Chore or refactor security For potential security issues or general hardening.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

wkhtmltopdf has been EoL for over 2 years now Improve quiz generation

1 participant