QuizExport

Quiz reports ::: quiz_export
Maintained by CBlueC 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)

Screenshots

Screenshot #0
Screenshot #1

Contributors

CBlue
C Blue (Lead maintainer)
Please login to view contributors details and/or to contact them

Comments

Show comments
  • Peter Kennedy
    Wed, 23 Oct 2024, 10:24 PM
    Added as issue on Github but posting here as well:

    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()

  • Peter Kennedy
    Wed, 23 Oct 2024, 10:46 PM
    Update; Able to export one Quiz attempt at a time, but have to click on Show report button before each export of a single Quiz attempt.

    When attempting to export multiple Quiz attempts, I am receive error message above.
  • Luca Federico
    Mon, 28 Apr 2025, 8:40 PM
    Hello, thanks for this plugin.
    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.

  • Ejiro Ekpogbe
    Thu, 6 Nov 2025, 10:18 PM
    Hello, thank you for this plugin. The installation was successful but I cannot export quiz attempts as PDF. When I click the link "Export attempt", I get an error message saying "Exception - "Class mod_quiz/output/attempt_summary_information" not found". Please how do I fix this error?
  • Marco Grob
    Fri, 16 Jan 2026, 6:26 PM
    The plugin is slow and sometimes it will not finish processing. The display does not match the original. For example, checkboxes for multiple-choice answers are missing, as well as the markers for drag‑and‑drop elements – just as Luca Federico already pointed out.
    Maybe you can fix the problems.
  • Renaud Lemaire
    Wed, 4 Mar 2026, 11:24 PM
    Luca Federico
    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.
  • Marco Grob
    Tue, 24 Mar 2026, 7:21 PM
    Dear Renaud Lemaire
    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.
  • Marco Grob
    Tue, 24 Mar 2026, 8:47 PM
    Here you'll see the output of the Quiz Export plugin with checking it and button Export selected attempts (ZIP file):


    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\\]\\]:
  • CBlue
    Thu, 30 Apr 2026, 5:22 PM
    Hello Marco
    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
  • Marco Grob
    Fri, 1 May 2026, 10:17 PM
    Dear Renaud Lemaire
    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][/img][/url]

    Plugin:
    [url=https://postimg.cc/06Fv2mCD][img][/img][/url]


    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][/img][/url]

    Plugin:
    [url=https://postimg.cc/gwQpkRKL][img][/img][/url]

    Original:
    [url=https://postimg.cc/06Fv2mCY][img][/img][/url]

    Plugin:
    [url=https://postimg.cc/8F9GPWbW][img][/img][/url]
  • CBlue
    Mon, 4 May 2026, 4:26 PM
    Hello Marco,

    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
  • Marco Grob
    Mon, 4 May 2026, 10:56 PM
    Hi Guillaume
    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 sad
    Could you please fix that again?
    [url=https://postimg.cc/5Yv74ZDt][img][/img][/url]
  • CBlue
    Wed, 6 May 2026, 8:41 PM
    Hi Marco

    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
  • Marco Grob
    Thu, 7 May 2026, 8:10 PM
    Hi Guillaume
    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 smile
    Marco Grob
  • Marco Grob
    Tue, 19 May 2026, 10:37 PM
    Dear Guilaume
    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
1 2
Please login to post comments