This is a migrated thread and some comments may be shown as answers.

kendo chart pdf export

1 Answer 40 Views
Charts
This is a migrated thread and some comments may be shown as answers.
Ollie
Top achievements
Rank 1
Iron
Ollie asked on 28 Nov 2016, 04:24 PM

Hi!

I have two cfm (coldfusion) pages that contains multiple charts and have the feature to export the page/charts as pdf. During our iOS testing, the ipad2 that we're using always crashes chrome and when using safari, it just reloads the page without pushing the download. The other page works fine.

The only difference between the 2 page is:

On the page the works properly, the javascript functions are inside the page while the one that crashes, the functions are contained in an external file.

I tried connecting the ipad2 to a Mac to debug and it always crashes when trying to execute kendo.drawing.drawDOM. 

PS: Both exports are working when i tested it on an iPad mini.

Any ideas/suggestions? Thanks,

Below is the code snippet:

kendo.drawing.drawDOM($(clone_id), {avoidLinks: true}).then(function(group) {
    //Render the result as a PDF file
    return kendo.drawing.exportPDF(group, {
        paperSize: "auto",
        margin: { left: "1cm", top: "1cm", right: "1cm", bottom: "1cm" }
        });
}).done(function(data) {
        //  Save the PDF file          
        kendo.saveAs({
          dataURI: data,
          fileName: fileName,
          proxyURL: '/Controllers/v2/LearnerDashboard/v2/LearnerSummaryController.cfc?method=openExport',
          forceProxy: true,
          proxyTarget: '_blank'
    });                                
});

1 Answer, 1 is accepted

Sort by
0
Alex Hajigeorgieva
Telerik team
answered on 30 Nov 2016, 12:11 PM
Hello Ollie,

The Kendo UI PDF Export is officially supported only on desktop browsers:

http://docs.telerik.com/kendo-ui/intro/supporting/browser-support#pdf-export

As you have noted yourself - the PDF Export may work on some mobile devices.  However, since we are not able to claim universal support, we prefer to officially state the feature as not supported.

We would like to extend the support to include mobile browsers, however, we are dependent on the way that mobile browsers work, their API and technical limitations.

Please, cast your vote for the Kendo UI PDF Export on mobile browsers in the UserVoice idea at:

http://kendoui-feedback.telerik.com/forums/127393-kendo-ui-feedback/suggestions/15365349-support-for-major-browsers-on-mobile-devices-for-p

As it gains more popularity, it will be pushed up for implementation appraisal.

Kind Regards,
Alex Hajigeorgieva
Telerik by Progress
Kendo UI is ready for Visual Studio 2017 RC! Learn more.
Tags
Charts
Asked by
Ollie
Top achievements
Rank 1
Iron
Answers by
Alex Hajigeorgieva
Telerik team
Share this question
or