PDF exporter failing

3 posts, 1 answers
  1. Grant
    Grant avatar
    132 posts
    Member since:
    Jul 2016

    Posted 19 Aug 2016 Link to this post


    Im trying to export a grid to PDF but Im constantly having problems with it.

    In Chrome
    If I import kendo.common.min.css from the kendo cdn, everything works as it should (PDF exported successfully). As soon as I change to my local copy, it fails, complaining that it cannot find "styles/fonts/DejaVu/DejaVuSans.ttf" even though the file IS there.

    In IE
    Always fails, complaining about "Access is Denied" in the kendo.all.min.js. 

    I just updated my kendo files this morning to version 2016.2.714. Unfortunatly I have been unable to duplicate the issue in a Dojo environment so I dont know how to proceed. Please advise.

    Kind Regards,

  2. Answer
    Stefan avatar
    2473 posts

    Posted 23 Aug 2016 Link to this post

    Hello Grant,

    The issues in Chrome and Internet explorer are related to CORS (cross-domain Ajax) restrictions:


    Once the font files are uploaded to the server that will host the application, the pdf export should work as expected.

    If this is not the case, please send a locally runnable project so we can investigate it further. 

    Telerik by Progress
    Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
  3. Anthony
    Anthony avatar
    13 posts
    Member since:
    Jan 2012

    Posted 07 Dec 2017 in reply to Grant Link to this post

    The @font statement in your case file looks for the font in the same folder as it is in. So if it is in your styles folder, and your font is in the fonts folder, try starting your path at fonts rather than styles. This worked for me - but I put the font directly in my Contents folder and so have no path in my @font SRC statement.
Back to Top