Edit on
<button onclick="savePdf()">PDFを保存</button>
<div id="flexChart" style="width: 300px; height: 200px;"></div>
var flexChart = new wijmo.chart.FlexChart('#flexChart');
flexChart.initialize({
  itemsSource: [ { name: '日本語', value: 100 } ],
  bindingX: 'name',
  series: [ { binding: 'value' } ]
});

function savePdf() {
  var doc = new wijmo.pdf.PdfDocument({
    ended: function (s, e) {
      wijmo.pdf.saveBlob(e.blob, 'FlexChart.pdf');
    }
  });
  doc.registerFont({
    source: 'https://demo.grapecity.com/wijmo/sample/fonts/ipaexg.ttf',
    name: 'ipaexg'
  });
  doc.setFont(new wijmo.pdf.PdfFont('ipaexg'));
  doc.drawText('日本語');
  doc.moveDown();
  flexChart.saveImageToDataUrl(wijmo.chart.ImageFormat.Svg, function (url) {
    console.log(url);
    doc.drawSvg(url);
    doc.end();
  });
}
Rerun