Moodle plugins directory: PDF Parts: Versions: 1.0.0 | Moodle.org
PDF Parts
Activities ::: mod_pdfparts
Maintained by Radu Dumbrăveanu
The PDF Parts module enables a teacher to provide a set of freely selected pages from a PDF file as a course resource.
PDF Parts 1.0.0
Moodle 2.5
Released: Friday, 4 October 2013, 4:45 PM
PDFParts module
===============
The PDF Parts module enables a teacher to provide a set of freely selected pages from a PDF file as a course resource.
How to use
----------
1. Add a new PDFParts to a course.
2. Configure all of the standard settings: name, description etc.
3. `Select PDF file` setting - upload a PDF file.
4. `Display` setting - choose the display type (currently, only `Force download` and `Open` are implemented).
5. `Pages` setting - it is similar to the setting from any Print dialog that allows you to select a page or page ranges for printing. The values must be set in a format like 2-4,7,8,10-12.
Now when a student clicks on this resource link he gets only the pages specified in `Pages` setting.
Additional features
-------------------
The Teacher can add only one PDFParts instance to a course and set it to dynamically choosing of page ranges.
The module accepts an optional GET parameter called "pages" which will override the corresponding base setting.
Suppose the Teacher added a PDFParts module to course with the id: 4720. Then he can build links in this format:
```
http:///mod/pdfparts/view.php?id=4720&pages=2,4
http:///mod/pdfparts/view.php?id=4720&pages=2-4,7,8,10-12
```
in order to provide the students with the precise pages where the needed information resides, for example the page with the solution to an exercise, or a page with the definition of a term.
Notes
-----
* If the `Pages` setting is empty then the whole document is served to user.
* The `Open` display type may not work in all browser.
* Not all PDF files of version higher than 1.4 are processed without errors.
Credits (acknowledge)
--------------------
The PDFParts module was created based on an idea that came to me after seeing the PDF Page Limiter (mod_pdfpager) module by Geoff Eggins.
TODO
----
* The extracted pages are generated on demand; more efficient is to generate once and store the result in the server file cache; then serve to users the file from the cache.
* Add support for PDFtk (http://www.pdflabs.com/tools/pdftk-the-pdf-toolkit/)
===============
The PDF Parts module enables a teacher to provide a set of freely selected pages from a PDF file as a course resource.
How to use
----------
1. Add a new PDFParts to a course.
2. Configure all of the standard settings: name, description etc.
3. `Select PDF file` setting - upload a PDF file.
4. `Display` setting - choose the display type (currently, only `Force download` and `Open` are implemented).
5. `Pages` setting - it is similar to the setting from any Print dialog that allows you to select a page or page ranges for printing. The values must be set in a format like 2-4,7,8,10-12.
Now when a student clicks on this resource link he gets only the pages specified in `Pages` setting.
Additional features
-------------------
The Teacher can add only one PDFParts instance to a course and set it to dynamically choosing of page ranges.
The module accepts an optional GET parameter called "pages" which will override the corresponding base setting.
Suppose the Teacher added a PDFParts module to course with the id: 4720. Then he can build links in this format:
```
http:///mod/pdfparts/view.php?id=4720&pages=2,4
http:///mod/pdfparts/view.php?id=4720&pages=2-4,7,8,10-12
```
in order to provide the students with the precise pages where the needed information resides, for example the page with the solution to an exercise, or a page with the definition of a term.
Notes
-----
* If the `Pages` setting is empty then the whole document is served to user.
* The `Open` display type may not work in all browser.
* Not all PDF files of version higher than 1.4 are processed without errors.
Credits (acknowledge)
--------------------
The PDFParts module was created based on an idea that came to me after seeing the PDF Page Limiter (mod_pdfpager) module by Geoff Eggins.
TODO
----
* The extracted pages are generated on demand; more efficient is to generate once and store the result in the server file cache; then serve to users the file from the cache.
* Add support for PDFtk (http://www.pdflabs.com/tools/pdftk-the-pdf-toolkit/)
Version information
- Version build number
- 2013090100
- Version release name
- 1.0.0
- Maturity
- Release candidate
- MD5 Sum
- d7338c4f6e9406b82c413257857bbc9b
- Supported software
- PHP 5.3, Moodle 2.5
- Latest release for Moodle 2.5
Version control information
- Version control system (VCS)
- GIT
- VCS repository URL
Default installation instructions for plugins of the type Activities
- Make sure you have all the required versions.
- Download and unpack the module.
- Place the folder (eg "assignment") in the "mod" subdirectory.
- Visit http://yoursite.com/admin to finish the installation