General plugins

Working on a plugin to merge all pdf files in a course

 
Picture of Kashmira Nagwekar
Working on a plugin to merge all pdf files in a course
 

Hey all,

    I am trying to develop a plugin which merges all the pdf documents in a particular course.

I am attaching a very basic version of the module (patch file) which I have developed.

This patch is developed on Ubuntu 16.04 LTS system and requires PDFtk (tool for manipulating PDF documents) and LaTeX.

It gives you a merged document (in pdf format) as final output file.

Ideas and suggestions are welcomed!

Thank you.

 
Average of ratings: -
Picture of Kashmira Nagwekar
Re: Working on a plugin to merge all pdf files in a course
 
Hey all,
    Here is a new patch file with some additions.
(The patch requires PDFtk and LaTeX.)

After applying this patch to moodle:
 - Go to a particular course
 - Click on settings icon
 - A link saying "Merge PDF files" will appear in the course settings (drop-down menu) list.
 - Then, you get a page listing all the pdf files in that particular course.
 - At the end of this page, you get a button labeled "Merge pdf files".
 - On clicking the button, the user will get a merged document of all the course files listed on that page.

In future, I intend to add functionality wherein a user will be able to - 
 - shufffle the listed pdf files
 - select only a few/all pdf files

Through this feature, now users will be able to merge pdf files in a particular course from within moodle itself.

Comments and suggestions are welcome!
 
Average of ratings: -
Picture of Mihir J
Re: Working on a plugin to merge all pdf files in a course
 

Hi

Sorry, which directory should I put this file to test please

thanks!

Mihir

 
Average of ratings: -
Picture of Kashmira Nagwekar
Re: Working on a plugin to merge all pdf files in a course
 

Hi Mihir,

I have recently submitted an initial version of this plugin in Moodle plugins Directory for approval process. I would suggest to either download it from there or get it from github repo given below :

Moodle Plugins directory : https://moodle.org/plugins/report_mergefiles

Github URL : https://github.com/Kashmira9890/moodle-report_mergefiles

The 'mergefiles' folder is to be put into 'moodle/report' directory.

Also, there is a patch file given inside the plugin folder, which needs to be applied.

Let me know your remarks/suggestions about this plugin.

Thanks,

Kashmira.

 
Average of ratings: -
Picture of Kashmira Nagwekar
Re: Working on a plugin to merge all pdf files in a course
 

'moodle-report_mergefiles'

A plugin to merge PDF files in a Moodle course.


New version for Moodle version 3.2.2+ and above.

The ‘Merge PDF Files’ plugin offers users a convenient way by which they can merge the PDF documents in a Moodle course.

This plugin requires two external tools:

  • PDFtk (short for PDF Toolkit) is a cross-platform tool for manipulating Portable Document Format (PDF) documents.

  • LaTeX – A document preparation system for high-quality typesetting. It is most often used for medium-to-large technical or scientific documents but it can be used for almost any form of publishing.

The module is created and currently being developed at IIT, Bombay (India).

Installation

  • The plugin folder ‘mergefiles’ is to be added under moodle/report directory.

How to use?

  • Go to a particular course.
  • Click on 'Settings' icon.
  • Click on 'More...'.
  • The plugin "Merge PDF files" will appear in Course administration -> Reports.
  • The plugin index page gives you a list of all the pdf files in that particular course.
  • At the end of this page, you get a button labeled "Merge pdf files".
  • On clicking this button, the user will get a merged pdf document of all the course files listed on that page.

Moodle Plugin - Merge PDF files


Source Control URL - https://github.com/IITBombayWeb/moodle-report_mergefiles

Bug Tracker - https://github.com/IITBombayWeb/moodle-report_mergefiles/issues

 
Average of ratings: -
Picture of Kashmira Nagwekar
Re: Working on a plugin to merge all pdf files in a course
 

Hey all,

'Merge PDF Files' plugin's new version can be downloaded from:

https://github.com/IITBombayWeb/moodle-tool_mergefiles/tree/TOOL_MERGEFILES_1.0.1


Moodle plugin for merging pdf files in a course.

The ‘Merge PDF Files’ plugin offers the user a convenient way by which they can merge the files (only PDF documents) in a Moodle course.

This plugin requires two external tools:

  • PDFtk (short for PDF Toolkit) is a cross-platform tool for manipulating Portable Document Format (PDF) documents.
  • LaTeX – A document preparation system for high-quality typesetting. It is most often used for medium-to-large technical or scientific documents but it can be used for almost any form of publishing.

The module is created and is currently being developed at IIT Bombay (India).

Installation

The 'mergefiles' folder is to be added under 'moodle/admin/tool' directory.

How to use?

After installing this plugin into moodle:

  • Go to a particular course.
  • Click on 'Settings' icon.
  • The ‘Merge PDF files’ plugin link will appear in Course settings. Click on it.
  • The plugin index page gives you a list of all the pdf files in that particular course.
  • At the end of this page, you get a button labeled "Merge pdf files".
  • On clicking this button, the user will get a merged pdf document of all the course files listed on that page.
  • The user will be able to download the newly merged pdf file by clicking on the link provided.

Moodle Plugin - Merge PDF files

  • A table listing recently merged pdf documents will be displayed to the user. They can download the previously merged pdf document by clicking on the corresponding link.

List of recently merged files.

Usage

Through this feature, now users will be able to merge pdf files in a particular course from within moodle itself.

Work in progress

The following functionality is being incorporated into this plugin wherein:

  • user can select only a few/all pdf files
  • user can shufffle the listed pdf files.
 
Average of ratings: -