Skip to content
Snippets Groups Projects
Commit 93f0bb75 authored by Friederike Schwager's avatar Friederike Schwager
Browse files

update readme and thirdpartylibs.xml

parent c130e3fb
No related branches found
No related tags found
No related merge requests found
...@@ -14,10 +14,10 @@ You should have received a copy of the GNU General Public License ...@@ -14,10 +14,10 @@ You should have received a copy of the GNU General Public License
along with Moodle. If not, see <http://www.gnu.org/licenses/>. along with Moodle. If not, see <http://www.gnu.org/licenses/>.
Please note that this plugin also contains files that are under the Please note that this plugin also contains files that are under the
- MIT License: namely index.js, jquery-3.2.1, textclipper.js, chart.js - MIT License: namely index.js, jquery-3.2.1, textclipper.js, chart.js, jsPDF
- Apache License, Version 2.0: namely pdf.js. - Apache License, Version 2.0: namely pdf.js.
Google Charts API is used in download function to convert [LaTeX](https://www.latex-project.org/) formulae to PNG: <https://chart.googleapis.com/chart>. Optionally Google Charts API can be used in download function to convert [LaTeX](https://www.latex-project.org/) formulae to PNG: <https://chart.googleapis.com/chart>.
### Installation: ### Installation:
......
...@@ -55,7 +55,6 @@ function pdfannotator_display_embed($pdfannotator, $cm, $course, $file, $page = ...@@ -55,7 +55,6 @@ function pdfannotator_display_embed($pdfannotator, $cm, $course, $file, $page =
// Method to use the language-strings in javascript. // Method to use the language-strings in javascript.
$PAGE->requires->strings_for_js(array_keys($strings), 'pdfannotator'); $PAGE->requires->strings_for_js(array_keys($strings), 'pdfannotator');
// Load and execute the javascript files. // Load and execute the javascript files.
$PAGE->requires->js(new moodle_url("/mod/pdfannotator/shared/jspdf.debug.js?ver=00001"));
$PAGE->requires->js(new moodle_url("/mod/pdfannotator/shared/pdf.js")); $PAGE->requires->js(new moodle_url("/mod/pdfannotator/shared/pdf.js"));
$PAGE->requires->js(new moodle_url("/mod/pdfannotator/shared/pdf_viewer.js")); $PAGE->requires->js(new moodle_url("/mod/pdfannotator/shared/pdf_viewer.js"));
$PAGE->requires->js(new moodle_url("/mod/pdfannotator/shared/textclipper.js")); $PAGE->requires->js(new moodle_url("/mod/pdfannotator/shared/textclipper.js"));
......
...@@ -720,7 +720,6 @@ function startIndex(Y,_cm,_documentObject,_userid,_capabilities, _toolbarSetting ...@@ -720,7 +720,6 @@ function startIndex(Y,_cm,_documentObject,_userid,_capabilities, _toolbarSetting
function openCommentsCallback() { function openCommentsCallback() {
_2.default.getStoreAdapter().getCommentsToPrint(RENDER_OPTIONS.documentId) _2.default.getStoreAdapter().getCommentsToPrint(RENDER_OPTIONS.documentId)
.then(function(data){ .then(function(data){
if(data.status === "success") { if(data.status === "success") {
   
// Get annotation type images. // Get annotation type images.
...@@ -786,7 +785,6 @@ function startIndex(Y,_cm,_documentObject,_userid,_capabilities, _toolbarSetting ...@@ -786,7 +785,6 @@ function startIndex(Y,_cm,_documentObject,_userid,_capabilities, _toolbarSetting
var timeasked = post['timemodified']; var timeasked = post['timemodified'];
doc.setTextColor(0,84,159); doc.setTextColor(0,84,159);
breakLines(author, timeasked, question); breakLines(author, timeasked, question);
// Add answers to the question in black (extremely dark blue which looks better). // Add answers to the question in black (extremely dark blue which looks better).
doc.setTextColor(0,0,51); doc.setTextColor(0,0,51);
var answers = post['answers']; var answers = post['answers'];
...@@ -808,7 +806,6 @@ function startIndex(Y,_cm,_documentObject,_userid,_capabilities, _toolbarSetting ...@@ -808,7 +806,6 @@ function startIndex(Y,_cm,_documentObject,_userid,_capabilities, _toolbarSetting
* it contains latex formulae images or not and place its text and/or images on the pdf * it contains latex formulae images or not and place its text and/or images on the pdf
*/ */
function breakLines(author=null, timemodified=null, post, characters = 150) { function breakLines(author=null, timemodified=null, post, characters = 150) {
if (typeof post === "string") { // Answer contains text only. if (typeof post === "string") { // Answer contains text only.
printTextblock(author, timemodified, post); printTextblock(author, timemodified, post);
} }
......
Source diff could not be displayed: it is too large. Options to address this: view the blob.
...@@ -36,5 +36,12 @@ ...@@ -36,5 +36,12 @@
<license>MIT</license> <license>MIT</license>
<licenseversion></licenseversion> <licenseversion></licenseversion>
</library> </library>
<library>
<location>amd/src/jspdf.js</location>
<name>jsPDF</name>
<version>1.4.1</version>
<license>MIT</license>
<licenseversion></licenseversion>
</library>
</libraries> </libraries>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment