Skip to Content

jspdf in fiori client

Hi everyone,

I develop print pdf application with jspdf libray.this application will be used in fiori client and it will be used java portable.

When ı am testting application in fiori client with webide link, jspdf print is executing well but when ı deployed in system then try portable link,print is not working fiori client.But when ı try application in safari,android browser and google with portable link print is working.

How ı can execute in fiori client with portable link.


My code is :

onPrintCanvas: function () {
var todoListId = "idGrid1";
var todoListElement = document.getElementById(todoListId);;
var that = this;
html2canvas(todoListElement, {
    width: todoListElement.clientWidth,
    height: todoListElement.clientHeight
}).then(function (canvas) {
   var imgData = canvas.toDataURL('#ffffff', "image/jpeg", 1.0);
   var pdf = undefined;
    var margin = 40;
    if (canvas.width > canvas.height) {
       pdf = new jsPDF('l', 'pt', [canvas.width + margin, canvas.height + margin]);
   } else {
      pdf = new jsPDF('p', 'pt', [canvas.height + margin, canvas.width + margin]);
    pdf.addImage(imgData, 'JPEG', margin / 2, margin / 2, canvas.width, canvas.height, '', 'FAST');
   if (sap.ui.Device.system.desktop) {'isemri.pdf');
    } else {'isemri.pdf');
Add a comment
10|10000 characters needed characters exceeded

Related questions

0 Answers

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.