kendo chart pdf export

2 posts, 0 answers
  1. Ollie
    Ollie avatar
    1 posts
    Member since:
    Oct 2016

    Posted 28 Nov 2016 Link to this post

    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'
        });                                
    });
  2. Alex Hajigeorgieva
    Admin
    Alex Hajigeorgieva avatar
    134 posts

    Posted 30 Nov 2016 Link to this post

    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.
Back to Top