exportPDF and Embedded Base64 PNGs

2 posts, 0 answers
  1. Ed
    Ed avatar
    1 posts
    Member since:
    May 2015

    Posted 29 May 2015 Link to this post


    I am currently trialing your product. Everything is working, with the sole exception of an issue that occurs when attempting to export a diagram to PDF, which is a crucial requirement.

    Part of the requirement is that all PNGs used in the diagram must be embedded using Base64 Encoding, rather than the source URL of the image


    group.append(new dataviz.diagram.Image({
          source: "data:image/png;base64," + BASE64_STRING,
          x: 9,
          y: 20,
          width: 38,
          height: 38

    This is working nicely both on screen and when exporting the diagram to SVG. However, when exporting to PDF, the chart is rendered without the embedded images.

    Any advice would be very much appreciated. 


  2. T. Tsonev
    T. Tsonev avatar
    2791 posts

    Posted 01 Jun 2015 Link to this post

    Hello Ed,

    I've tried this in the Dojo and it seems to work fine. From the top of my mind I can say that this won't work in IE9 and below as it lacks support for Canvas.

    Can you spot any differences with your code?

    T. Tsonev
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top