Moodle Plugins directory: QuizExport | Moodle.org
QuizExport
Quiz reports ::: quiz_export
Maintained by
C Blue,
Olivier Piton,
Renaud Lemaire
This is a quiz report plugin to export quiz attempts as pdf
Latest release:
431 sites
246 downloads
23 fans
Current versions available: 4
This is a quiz report plugin for to export quiz attempts as pdf. Single quiz attempt exports are possible as well as bulk exports as zip files.
Practical information:
- Open a quiz page. Then click on the cog and choose "Quiz exporting" (or "Export de quiz" in French)
- On this page, you can choose the export options, then select one (or more) attempts to export (it will be downloaded as zip if more than one attempt has been selected)
Useful links
Contributors
C Blue (Lead maintainer)
Olivier Piton
Renaud Lemaire
Please login to view contributors details and/or to contact them
Moodle 4.3.4+ (Build: 20240530) | main moodle-quiz_export branch.
When attempting to export Quiz attempt (single or multiple), I am presented with a confirmation window asking if I want to export selected attempts.
When I click on Yes, I see this error message:
Attempt to access the step user before it was initialised. Did you forget to call question_usage_by_activity::preload_all_step_users() or similar?
line 204 of /question/engine/questionattemptstep.php: call to debugging()
line 215 of /question/engine/questionattemptstep.php: call to question_attempt_step->get_user()
line 524 of /question/engine/renderer.php: call to question_attempt_step->get_user_fullname()
line 495 of /question/engine/renderer.php: call to core_question_renderer->action_author()
line 120 of /question/engine/renderer.php: call to core_question_renderer->response_history()
line 113 of /question/behaviour/behaviourbase.php: call to core_question_renderer->question()
line 912 of /question/engine/questionattempt.php: call to question_behaviour->render()
line 483 of /question/engine/questionusage.php: call to question_attempt->render()
line 1345 of /mod/quiz/classes/quiz_attempt.php: call to question_usage_by_activity->render_question()
line 1307 of /mod/quiz/classes/quiz_attempt.php: call to mod_quiz\quiz_attempt->render_question_helper()
line 199 of /mod/quiz/classes/output/renderer.php: call to mod_quiz\quiz_attempt->render_question()
line 67 of /mod/quiz/classes/output/renderer.php: call to mod_quiz\output\renderer->questions()
line 314 of /mod/quiz/report/export/export.php: call to mod_quiz\output\renderer->review_page()
line 270 of /mod/quiz/report/export/export.php: call to quiz_export_engine->render()
line 250 of /mod/quiz/report/export/export.php: call to quiz_export_engine->get_review_html()
line 107 of /mod/quiz/report/export/export.php: call to quiz_export_engine->all_questions()
line 198 of /mod/quiz/report/export/report.php: call to quiz_export_engine->a2pdf()
line 164 of /mod/quiz/report/export/report.php: call to quiz_export_report->export_attempts()
line 86 of /mod/quiz/report/export/report.php: call to quiz_export_report->process_actions()
line 83 of /mod/quiz/report.php: call to quiz_export_report->display()
When attempting to export multiple Quiz attempts, I am receive error message above.
However, I was wondering if it's possible to keep the markers next to each answer (I mean, the green ticks and/or the red crosses).
If you download the PDF report, they disappear, but I'd rather let my students know if they're right or wrong immediately, with those symbols.
Moreover, how can we keep the original fonts and, especially, the same blanks graphically (instead of showing texts like "vuoto" and "domanda", in Italian).
If you manage to fix those two things, it would be great!
Thanks a lot.
Maybe you can fix the problems.
Hi Luca, good news — we've just released a new version that addresses most of the issues you mentioned:
Correct/incorrect markers: SVG icons now replace FontAwesome icons for green checks and red crosses, which makes them properly portable in PDF exports.
"Vuoto" / "Domanda" labels and hidden elements: Translation strings have been fixed, and elements with .visually-hidden are now correctly hidden in PDF output.
Multichoice rendering: The display of multichoice questions has been reviewed and improved.
Please update the plugin and let us know if things look better on your end!
Ejiro Ekpogbe
Hi Ejiro, the error Class mod_quiz/output/attempt_summary_information not found is typically caused by a mismatch between the plugin version and your Moodle version.
Could you let us know which version of Moodle you're running, and which version of the plugin you installed? Each plugin release targets a specific Moodle branch, so it's important to use the matching version. You can find the right release for your Moodle version on the plugin's download page.
Marco Grob
Hi Marco, we've just released a new version that should help with both issues you raised:
Performance: Exports can now run asynchronously, which significantly improves reliability for large quizzes. A configurable time limit setting has also been added.
Rendering issues (checkboxes, markers): Multichoice question display has been improved, SVG icons are now used for answer markers (fixing portability issues in PDFs), and general HTML rendering in PDF output has been refined.
Please give the new version a try and feel free to report any remaining issues.
Thank you for updating the plugin. The speed is much faster now and you added a setting page for adjusting the parameters. That's really fine.
Some design problem still exists at least with these two activities:
- Drag and drop markers
- Drag and drop onto image
There is no image in the resulting PDF. Just a red cross instead of the image and all possible answers. You couldn't see whats right and whats wrong. Actually, I cannot use it with this limitation.
I also mentioned that under Site administration | Plugins | Quiz | the text is "exportreport". That is just not looking good, but work okay.
I'm using Moodle 5.1.3+ freshly installed and with only this plugin.
And here the Quiz Export directly from a student. Below his name font "Export attempt" (PDF file):
Output of the original Review attempt:
--
Site administration plugin name not nice:
Configuration setting of the plugin \\[\\[exportreport\\]\\]:
Thank you very much for your feedback,
You will find a new version of the plugin that fixes the issues you raised :
* D&D markers and D&D onto image now render correctly in the exported PDF. The background image is correctly embedded, all draggable items and drop zones are displayed and the student's answer is show together with the correct answer (with green/red border indicators to make the right/wrong choices immediatly visible). We also fixed some markers positionings and other stuf
* The "exportreport" string under the site administration has beed fixed too
In addition we also improved the redering of d&d into text (ddwtos) questions whith now use the same green/red success/failure style
Best regards,
Guillaume Normand
Thank you for updating the plugin again. The string in the plugin settings is now fine.
Some design problem still exists with drag & drop questions. Let me explain with pictures again.
Thank you for your work and hopefully for fixing these glitches.
Best regards, Marco Grob
--
Question type "Drag & drop marker"
- Question number and points are not showing on the left hand side. Feedback is missing, too.
- Correct/incorrect position not shown. Also not shown outside of your plugin
Original:
[url=https://postimg.cc/t1wbCPzh][img]
Plugin:
[url=https://postimg.cc/06Fv2mCD][img]
Question type "Drag & drop onto image"
- Question number and points are not showing on the left hand side. Feedback is missing, too.
- Other assignment boxes are not displayed. Green or red box if correct/incorrect.
Original:
[url=https://postimg.cc/v1kyH9v5][img]
Plugin:
[url=https://postimg.cc/gwQpkRKL][img]
Original:
[url=https://postimg.cc/06Fv2mCY][img]
Plugin:
[url=https://postimg.cc/8F9GPWbW][img]
Thank you for your feedback. We added some fixes to the issues you encountered.
The left info column is now preserved in the PDF, sorry for this mistake.
The feedback section now appears. We added the labels that the student did not place, they now are listed in an "Unplaced labels" area, below the image.
In addition to the green/red border around each dropzone, we now display a small green check or red cross icon. This will be readable when the PDF is printed in black and white or for users who can not easily distinguish the colors.
Could you please update the plugin and let us know if this resolves the issues ?
Thank you very much,
Guillaume Normand
Thank you very much for the fast fix! It nearly looks perfectly good. One thing is wrong with question type "Drag & drop onto image". The displayed solution is not the same as the real right solution. Look at the picture. The right left one is original and correct, the right one is from the PDF and wrong. But it has green check marks
Could you please fix that again?
[url=https://postimg.cc/5Yv74ZDt][img]
Thanks again for the feedback. Sorry for the back-and-forth; I wasn't initially involved with this plugin, so it took me quite a while to get to grips with it and understand all the ins and outs.
I misunderstood that it was actually about "copying" the "made in Moodle" attempt review into a PDF. So I've reworked the plugin quite a bit regarding the export of the ddmarkers, ddimageortext, and ddwtos files to make them as close as possible to the original review.
I've done numerous tests on all types of questions. I also encountered an issue when there were images in the answer feedback; they weren't displaying when there was a bulk export (in fact, the CRON job didn't have the necessary permissions to generate the image for the PDF during the bulk export). This problem should now be fixed.
This v4.5.3 also normally fixes the issues of good/bad answers when they are mixed.
It should be a better version now, and i hope these fixes are now ok !
Guillaume Normand
No problem—thanks for the quick replies and fixes. I’d love to use the plugin, and the way you’ve developed it now is great! I’ll install it on our production environment and document how it works.
Thank you so much for your effort and quick implementation. I think others will benefit from this as well.
If there’s anything you’d like me to test for you, feel free to let me know. I’m very picky
Marco Grob
We have a survey-heavy test with many participants. Unfortunately, the export doesn't finish within the standard 10 minutes. Unfortunately, the message doesn't make it clear to the user that a timeout has occurred. It still says: “Export is being prepared...” Could you improve the error handling there when you get a chance? Pic: https://postimg.cc/1VwhpW9C
Marco Grob