Encoding in the pdf when mvc charts are exported

2 posts, 0 answers
  1. Mateusz
    Mateusz avatar
    1 posts
    Member since:
    Aug 2014

    Posted 15 Jan Link to this post

    Hello,
    There is a problem regarding encoding in the pdf when mvc charts are exported. Does exist any solution to show none ASCII chars in the pdf? I've tried to set some fonts but it's not working unfortunately.
    eg. 
        kendo.pdf.defineFont({
            "Open Sans": "/fonts/OpenSans-Regular.ttf",
            "Open Sans|Bold": "/fonts/OpenSans-Bold.ttf",
            "Open Sans|Bold|Italic": "/fonts/OpenSans-BoldItalic.ttf",
            "Open Sans|Italic": "/fonts/OpenSans-Italic.ttf"
        });

    or 
    /* Pdf font */
    @font-face {
      font-family: "Open Sans";
      src: url("../fonts/OpenSans-Regular.ttf") format("truetype");
    }

    P.S. Export from Grid looks good (after I've added @font-face style).
    Please see attached files.

    Thanks a lot,
    Hello,
    There is a problem regarding encoding in the pdf when mvc charts are exported. Does exist any solution to show none ASCII chars in the pdf? I've tried to set some fonts but it's not working unfortunately.
    eg. 
        kendo.pdf.defineFont({
            "Open Sans": "/fonts/OpenSans-Regular.ttf",
            "Open Sans|Bold": "/fonts/OpenSans-Bold.ttf",
            "Open Sans|Bold|Italic": "/fonts/OpenSans-BoldItalic.ttf",
            "Open Sans|Italic": "/fonts/OpenSans-Italic.ttf"
        });
     
    or 
    /* Pdf font */
    @font-face {
      font-family: "Open Sans";
      src: url("../fonts/OpenSans-Regular.ttf") format("truetype");
    }
     
    P.S. Export from Grid looks good (after I've added @font-face style).
    Please see attached files.
     
    Thanks a lot,
    Hello,
    There is a problem regarding encoding in the pdf when mvc charts are exported. Does exist any solution to show none ASCII chars in the pdf? I've tried to set some fonts but it's not working unfortunately.
    eg. 
        kendo.pdf.defineFont({
            "Open Sans": "/fonts/OpenSans-Regular.ttf",
            "Open Sans|Bold": "/fonts/OpenSans-Bold.ttf",
            "Open Sans|Bold|Italic": "/fonts/OpenSans-BoldItalic.ttf",
            "Open Sans|Italic": "/fonts/OpenSans-Italic.ttf"
        });
     
    or 
    /* Pdf font */
    @font-face {
      font-family: "Open Sans";
      src: url("../fonts/OpenSans-Regular.ttf") format("truetype");
    }
     
    P.S. Export from Grid looks good (after I've added @font-face style).
    Please see attached files.
     
    Thanks a lot,
    Hello,
    There is a problem regarding encoding in the pdf when mvc charts are exported. Does exist any solution to show none ASCII chars in the pdf? I've tried to set some fonts but it's not working unfortunately.
    eg. 
        kendo.pdf.defineFont({
            "Open Sans": "/fonts/OpenSans-Regular.ttf",
            "Open Sans|Bold": "/fonts/OpenSans-Bold.ttf",
            "Open Sans|Bold|Italic": "/fonts/OpenSans-BoldItalic.ttf",
            "Open Sans|Italic": "/fonts/OpenSans-Italic.ttf"
        });
     
    or 
    /* Pdf font */
    @font-face {
      font-family: "Open Sans";
      src: url("../fonts/OpenSans-Regular.ttf") format("truetype");
    }
     
    P.S. Export from Grid looks good (after I've added @font-face style).
    Please see attached files.
     
    Thanks a lot,
  2. Milena
    Admin
    Milena avatar
    224 posts

    Posted 19 Jan Link to this post

    Hello,

    Unfortunatelly, non-ASCII characters are unsupported with the standard PDF fonts.
    Additional information about PDF export could be found here.

    Regards,
    Milena
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. Kendo UI is VS 2017 Ready
Back to Top