Hi,
I can't understand how after almost 18 years this simple functionality is not yet implemented in Moodle. There are many situations where having a printable pdf version of the quiz and its solutions is a must for a teacher or even the students, i.e. for analyzing the results, studying or reviewing them offline.
It could be done via the web browser directly, there are some workarounds out there which allow printing a quiz directly from the browser (as a regular website document), but after: repaginating all the questions in one page, creating a false quiz attempt, highlighting by hand the questions on the browser, and with an unoptimized format for a printable version, wasting many pages as the result. Being the quiz layout good for watching on the screen but not for printing, it's unbelievable there isn´t an useful solution yet as a Moodle feature or plugin.
Also, if a teacher needs just the correction layout (the relationship between questions and their right answer, i.e. 1:A, 2:C, 3:B, etc. it's impossible to have it in a single page without wasting once again unnecessary time, space and pages.
It would be a great solution having a "Print to PDF" button at the quiz page which outputs a PDF with the questions and answers and the last page with the list of solutions.
I am not an expert in Moodle development, but I guess the approach for having a simple "Print to PDF" button within the quiz page, would be using the same function that brings out the array of questions and answers within the quiz, and then formatting this list using an external library like pdflib.php
Really, no user or developer of Moodle sees it necessary to implement this feature?
Best Regards.