Export Quiz as PDF

Export Quiz as PDF

by Jose Navas -
Number of replies: 11

Hi,

I'm trying to add a new option to the Quiz, called 'Export quiz as PDF', like his name says, it will export the quiz as PDF using the same configuration and order of questions of a normal quiz.

This will be useful to make written tests to our classes, and avoid cheating between students, using the random order of questions and other unique features of the Quiz module.

There is a few problems I've foreseen like the layout of the questions, e.g. for Matching questions we need to change the layout and use empty parenthesis (  ) instead of select-option combo boxes.

Any ideas or code of how can I add this feature to the Quiz?

Thanks

P.S. It would be nice if I can move my class to a computer classroom, but we have not enough computers for the class, so we have to use written tests.

Attachment export_quiz_pdf.png
Average of ratings: -
In reply to Jose Navas

Re: Export Quiz as PDF

by Marty Soupcoff -

See this earlier forum discussion on the topic.

Another problem besides the ones you have mentioned is the feature of adding questions randomly from categories. Would the export to PDF export all the questions or randomly select like it does for attempts taken online?

Happy Moodle Logooodling!

Average of ratings: Useful (2)
In reply to Marty Soupcoff

Re: Export Quiz as PDF

by Jose Navas -

Hello Marty,

After reading that forum thread I see that people have different ideas of how something like this should work...

About the feature of adding question randomly from categories, I think the 'Export quiz as PDF' will select the questions exactly the same way as it does for attempts online. The only and big difference is the different style used for printing, like consider the size of the paper (letter) and the number of pages used for contain all the questions of the quiz.

In reply to Jose Navas

Re: Export Quiz as PDF

by William Beazley -

If this is to become a general capability, it should be an administrator option with default of "OFF" or "HIDDEN".  We do not want our questions to be released into the wild.

In reply to William Beazley

Re: Export Quiz as PDF

by Marty Soupcoff -

I'm not a delevoper so I was more just discussing the issues that would need to be thought of.

If this is something that many people want, someone can put in a tracker feature request. Just make sure to first search to see if someone already did.

Happy Moodle Logooodling!

In reply to Marty Soupcoff

Re: Export Quiz as PDF

by Tim Hunt -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

The natural way to implement this is as a custom Quiz report plugin (http://docs.moodle.org/dev/Quiz_reports). Then you could share it in the plugins database, and then those people who want it can install it.

The plugin should use its own capability so that the admin can control which users can use this functionality (see the quiz statistics report for an example).

Average of ratings: Useful (2)
In reply to Tim Hunt

Re: Export Quiz as PDF

by Marty Soupcoff -

http://docs.moodle.org/dev/Quiz_reports

Just correcting your link Tim. It had the closing parentheses in the hyperlink big grin

Happy Moodle Logooodling!

Average of ratings: Useful (1)
In reply to Marty Soupcoff

Re: Export Quiz as PDF

by Azhar Ghani -

Roberto,

This option would also work well with individual's "attempted questions report"..

In reply to Jose Navas

Re: Export Quiz as PDF

by Leonardo Garcia Razera -

Jose Navas, how did you solve this problem... i need to do the same thing.

Could you help me please?

i read that using the fpdf library you can generate a pdf.

In reply to Leonardo Garcia Razera

Re: Export Quiz as PDF

by Jason Clark -

Mee too!!!! I really need a feature like this for midterm and final exams.

In reply to Jason Clark

Re: Export Quiz as PDF

by Rick Houghton -

Me too.  Add my name to the list.

In reply to Rick Houghton

Re: Export Quiz as PDF

by Jody Seidler -
Me, too!! 95% of my students are online, a handful need the paper version! At the moment, I have to retype everything to create paper quizzes. Please create this plugin!