Skip to content

Commit

Permalink
MDL-52312 assignfeedback_editpdf: changes to files after FPDI update
Browse files Browse the repository at this point in the history
1) Change the fpdi_bridge class so that it extends the pdf class,
rather than the TCPDF class.
2) Updated the editpdf/fpdi/readme_moodle.txt file to document the changes.
3) Updated the editpdf/thirdpartylibs.xml to reflect the update to the
FPDI library.
  • Loading branch information
mdjnelson committed Dec 7, 2015
1 parent f970013 commit c319e44
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 deletions.
4 changes: 3 additions & 1 deletion mod/assign/feedback/editpdf/fpdi/fpdi_bridge.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,10 @@ class fpdi_bridge extends FPDF

/**
* Class fpdi_bridge
*
* This has been modified to use the Moodle pdf class which in turn extends the TCPDF class.
*/
class fpdi_bridge extends TCPDF
class fpdi_bridge extends pdf
{
/**
* Array of Tpl-Data
Expand Down
9 changes: 8 additions & 1 deletion mod/assign/feedback/editpdf/fpdi/readme_moodle.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Information
URL: http://www.setasign.de/products/pdf-php-solutions/fpdi/
Download from: http://www.setasign.de/products/pdf-php-solutions/fpdi/downloads
Documentation: http://www.setasign.de/products/pdf-php-solutions/fpdi/manuals/
License: Apache Software License 2.0
License: The MIT License (MIT)

Installation
------------
Expand All @@ -19,6 +19,13 @@ Installation
3) Update mod/assign/feedback/editpdf/fpdi/fpdi_bridge.php (or the replacement file) to extend 'pdf' instead of 'TCPDF'.
4) Make a note below of any changes made.

2015/12/04
----------
Updated to FPDI: 1.6.1

1) Changed 'TCPDF' to 'pdf' (as stated above).
2) License changed from Apache Software License 2.0 to The MIT License (MIT).

2015/10/01
----------
Updated to FPDI: 1.5.4
Expand Down
6 changes: 3 additions & 3 deletions mod/assign/feedback/editpdf/thirdpartylibs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
<library>
<location>fpdi</location>
<name>FPDI</name>
<license>Apache</license>
<version>1.5.4</version>
<licenseversion>2.0</licenseversion>
<license>MIT</license>
<version>1.6.1</version>
<licenseversion></licenseversion>
</library>
</libraries>

0 comments on commit c319e44

Please sign in to comment.