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:
524 sites
60 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


  • Mon, May 6, 2019, 9:32 AM
    This works for us except the client wants the PDFs to export unsecured. I'm using the most recent version as of May 2019. https://alldailyjobs.com
  • Wed, Jun 19, 2019, 4:49 PM
    my lesson is write by chinese,When I export pdf, display scrambled code
  • Thu, Jun 27, 2019, 11:25 PM
    Thank you for you plugin!
    Can you help me =)
    I can't find magic button 'Export as PDF' =)
    Where it should be ? Can you show a prints creeen =))
  • Thu, Jul 25, 2019, 3:02 AM
    Is there a way to get this Plug-In to export the "Page" resource.

  • 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.
  • 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?
  • 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.
  • 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)
  • 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.
  • 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.

  • 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?
  • 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.
  • Sun, Jun 28, 2020, 3:11 PM
    i dont understand how to work with the plugin?
  • 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.
Please login to post comments