Lesson PDF Export

General plugins (Local) ::: local_lessonexport
Maintained by Adam King
This plugin allows lesson modules to be exported to PDF documents with optional protection.
Latest release:
440 sites
64 fans
Current versions available: 2

This plugin visually displays the option to output lesson modules as PDF documents.

There are many settings that come with the PDF export plugin including custom font, footer texts, document protection, cover colours, password protection, strict exporting and more. 

Document pages are ordered the same as each lesson and question pages are also supported, although some answers are not shown (such as short answer questions).

This plugin was developed for use on the SHEilds eLearning platform. If this plugin does not match your use-case, please open a ticket on Github detailing what you require for this to become a useful addition to your Moodle plugins.


Screenshot #0
Screenshot #1
Screenshot #2
Screenshot #3


Adam King (Lead maintainer)
Please login to view contributors details and/or to contact them

Comments RSS

Show comments
  • Abe Ezrachi
    Thu, Jul 25, 2019, 3:02 AM
    Is there a way to get this Plug-In to export the "Page" resource.

  • David Delcò
    Wed, Sep 11, 2019, 1:12 AM
    Hi, I tested this plugin and I find it very useful and builded very good, but I was looking for a option to display and hide this feature depending of the lesson. It will be very nice, in my case, to enable this feature only to specific lessons.
  • Stan Klapauszak
    Wed, Nov 27, 2019, 4:24 AM
    We're interested in exporting Chinese-language lessons (among others). When I use this plugin I get pages full of "?" characters, which is not helpful. Would it be possible to get usable exports of Chinese-language courses by adding fonts?
  • Dan Griffiths
    Mon, Dec 2, 2019, 5:24 PM
    I'm having an issue with this plugin when lessons contain SVG images. In this instance, a single blank page is output only. Has anyone come across this issue and found a fix?
    This is a great plug-in and very usefull for anyone needing to provide a hard copy of their Moodle lessons.
  • Kenneth Nelan
    Sat, Apr 18, 2020, 11:57 PM
    I seem to be having difficulty with printing images in that it doesn't print them and leaves huge gaps between paragraphs. Images are .png format

    Also, when printing the document download date - it overwrites text about two-thirds down the page.

    I am using Moodle 3.8.2+ (Build: 20200402) with plugin version Release 3.0+ (Build: 2019090900)
  • Jean-Luc Trussart
    Mon, Apr 20, 2020, 6:34 PM
    Thanks for this wonderful plugin! Very helpful. Is their a way that the matching questions items could been displayed in the PDF generated? I'm only getting the anwsers.
  • Jean-Luc Trussart
    Mon, Apr 20, 2020, 7:57 PM
    Also, is their a way to display the feedback of the different anwsers?
  • ABS
    Thu, May 7, 2020, 8:10 AM
    Dear Adam King

    I have trouble that I export lesson to dpf, the images in the lesson come out as scamble code, May I learn how to fix it.

  • Julia Dupuis
    Tue, Jun 16, 2020, 9:36 PM
    When I export a lesson, it just gives me a blank page. I don't know if this is due to the plugin or my lessons. I'm using moodle 3.6 but the lessons originated in 1.9, this shouldn't affect it right? Any ideas on what the issue is?
  • Erick French
    Tue, Jun 16, 2020, 11:24 PM
    Lots of Possible reasons. This plugin has difficulty with images, with any text that is cut and pasted from Microsoft word, with any table, or text from various other formats. It is in no way WYSIWYG. In order to get it to work, you will need to copy all of your text from every page into notepad or some other program that strips formatting code away. Then you will need to copy that text back into each page. In some cases, even that doesn't work and you will need to retype the text. I've never been able to get it to print a picture, or a table, or anything except for simple cleaned or retyped text. I'd dearly love to see these issues resolved. Printing really should be part of core Moodle code.
  • Meir Kirshner
    Sun, Jun 28, 2020, 3:11 PM
    i dont understand how to work with the plugin?
  • Wynand Louw
    Wed, Aug 25, 2021, 3:10 AM
    I have installed this plugin but cannot see it n Moodle 3.11 I cannot see any of the suggested functions on any of my courses.
  • Stan Klapauszak
    Tue, Jan 11, 2022, 5:55 AM
    Very good plugin, but a couple of additions would be very helpful:
    - ability to export the question-answer choices without all the additional details - at present, if you select "Export Question Answers" you get all the details for each answer (which ones are correct or incorrect, the responses to a correct or incorrect answer). We'd like to only see the answer alternatives.
    - fix for the issue with matching questions - at present only some of the answers are displayed
    - improve support for other languages - at present only English and western character fonts are supported
  • Josef Stritecky
    Tue, Feb 1, 2022, 10:48 PM
    Is it necessary to have another plugin installed for this plugin to work? Everything looks OK in the system, but I don't see the option to export to pdf anywhere. I use moodle 3.11. Thanks.
  • Linda Raymond-Hagen
    Thu, Sep 8, 2022, 9:48 AM
    Does this plugin function on Moodle 3.11?
1 2 3 4 5
Please login to post comments