Skip to content
Snippets Groups Projects
Unverified Commit e2dd4a2b authored by Friederike Schwager's avatar Friederike Schwager Committed by Tim Schroeder
Browse files

update readme and thirdpartylibs.xml

parent 7cc04376
Branches
Tags
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:
......
...@@ -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);
} }
......
...@@ -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