Moodle Content Exporter:A Multi-Format Moodle Writer

Back to the list of Downloadable Software


  • Release 1.0 - Initial release
  • Release 1.0.1 - Minor path fix


The Content Exporter is a general framework for writing Moodle course content to a variety of formats. Unlike the general (and wonderfully thorough) Moodle backup component, the Content Exporter focuses on creating human readable exports which are convenient for distribution.

The Linux Box developed the Content Exporter to provide themselves with a means of creating course packets for the courses we teach. The PDF exporter has allowed us to produce nicely bound companion manuals for students to mark up with their own notes.


Currently the Content Exporter supports:

  • PDF
  • Plain Text
  • HTML

Each writer is implemented as a content writer class implementing a set of functions described by the content_writer_abstract_class. Making a new writer is as simple as filling out a handful of prototype functions to route the content where you see fit.


PDF exporting is the most polished of the export options. To turn HTML to PDF it relies upon the excellent HTML2(F)PDF project which in turn relies upon FPDF. It also uses the index and bookmark extensions from Current features include:
  • HTML to PDF conversion
  • Title page
  • Moodle instance info page
  • Index with page numbers
  • Internal bookmarks (side bar pdf navigation)



Moodle Content Exporter is released under the GNU General Public License (GPL).


Copyright (C) 2005, 2006 The Linux Box Corp.


Ziba Scott


Simply extract the Moodle Content Exporter into the root directory of your Moodle installation. It will put everything into a subdirectory called contentexport. Then navigate to http://yourmoodle/contentexport and select a course and format from the menu. You must be logged in as an administrator. Output files are stored in the backup directory for the root course. To access
them, click on restore from your Moodle's front page.