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:
422 sites
216 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
  • Jean-François Vanass
    Thu, 7 Oct 2021, 10:06 PM
    New version release with fix to avoid import error during drag&drop import.
  • Pete Langshaw
    Thu, 28 Oct 2021, 9:57 AM
    Logged bug in GitHub

    When exporting a Maths Quiz including LateX formulas the formulas are replaced by a red x image placeholder
  • Jean-François Vanass
    Thu, 28 Oct 2021, 7:16 PM
    @Pete Langshaw : TeX content is not supported by the plugin atm. Maybe in a future version. Feel free to submit a pull request.
  • Ron Pluylaar
    Fri, 18 Feb 2022, 7:14 PM
    I've installed the plugin through te Moodle interface in (3.9.12) it installs fine and seems to work however an export only generates a pdf containing one question, shown three times instead of all three essay questions that are part of the quiz. Can this be because I do need to install it according to the readme?
  • CBlue
    Mon, 21 Feb 2022, 3:53 PM
    Hello Ron, I've installed the plugin by simply drag & dropping the .zip file and have exported a quiz with 3 essay questions. It seems to work fine, I have not been able te reproduce your bug.

    So it doesn't have to do with your installation method, would you care to try and give us more details about how you're getting this unexpected behavior ?

    Amaury.
  • Mircea Man
    Wed, 24 July 2024, 10:41 PM
    Hello, any chance to work on Moodle v. 4.xx?
  • CBlue
    Fri, 16 Aug 2024, 3:01 PM
    @Mircea Man Hello, we've pushed a new version for Moodle 4.x.
    Don't forget to make a "composer install" in the plugins folder.

    Julien
  • 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\\]\\]:
1 2
Please login to post comments