<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[AngularJS Chart Exporter not working]]></title><description><![CDATA[<p dir="auto">Jared, when I try to save a chart as a pdf.  Im getting this error.</p>
<p dir="auto">Regex</p>
<p dir="auto">Hide network messages<br />
All<br />
Errors<br />
Warnings<br />
Info<br />
Logs<br />
Debug<br />
Handled<br />
﻿<br />
pdfmake.min.js:11 Uncaught TypeError: Cannot read property 'Roboto-Regular.ttf' of undefined<br />
r.readFileSync	@	pdfmake.min.js:11<br />
t.open	@	pdfmake.min.js:14<br />
t	@	pdfmake.min.js:13<br />
font	@	pdfmake.min.js:13<br />
r.getFont	@	pdfmake.min.js:9<br />
r.widthOfString	@	pdfmake.min.js:9<br />
(anonymous function)	@	pdfmake.min.js:9<br />
h	@	pdfmake.min.js:9<br />
n.buildInlines	@	pdfmake.min.js:9<br />
r.measureLeaf	@	pdfmake.min.js:9<br />
(anonymous function)	@	pdfmake.min.js:9<br />
n.auto	@	pdfmake.min.js:9<br />
r.measureNode	@	pdfmake.min.js:9<br />
r.measureVerticalContainer	@	pdfmake.min.js:9<br />
(anonymous function)	@	pdfmake.min.js:9<br />
n.auto	@	pdfmake.min.js:9<br />
r.measureNode	@	pdfmake.min.js:9<br />
r.measureDocument	@	pdfmake.min.js:9<br />
i.tryLayoutDocument	@	pdfmake.min.js:9<br />
i.layoutDocument	@	pdfmake.min.js:9<br />
r.createPdfKitDocument	@	pdfmake.min.js:7<br />
r._createDoc	@	pdfmake.min.js:1<br />
r.getDataUrl	@	pdfmake.min.js:1<br />
toPDF	@	export.js:1798<br />
(anonymous function)	@	export.js:2577<br />
handleCallback	@	export.js:2146<br />
(anonymous function)</p>
]]></description><link>https://forum.mango-os.com/topic/2472/angularjs-chart-exporter-not-working</link><generator>RSS for Node</generator><lastBuildDate>Tue, 12 May 2026 04:29:30 GMT</lastBuildDate><atom:link href="https://forum.mango-os.com/topic/2472.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 28 Sep 2016 21:10:58 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to AngularJS Chart Exporter not working on Fri, 30 Sep 2016 15:50:23 GMT]]></title><description><![CDATA[<p dir="auto">@atkins-chrisw<br />
It seems to be related to the order the pdfmake JS files are loaded. I'll fix it in the next release. In the mean time you can change /dashboards/web/js/loaderConfig.js so that in the shim section the <code>amcharts/plugins/export/export</code> part changes to</p>
<pre><code>        'amcharts/plugins/export/export': {
            deps: ['amcharts/amcharts',
                   'amcharts/plugins/export/libs/blob.js/blob',
                   'amcharts/plugins/export/libs/fabric.js/fabric.min',
                   'amcharts/plugins/export/libs/FileSaver.js/FileSaver.min',
                   'amcharts/plugins/export/libs/jszip/jszip.min',
                   'amcharts/plugins/export/libs/pdfmake/vfs_fonts',
                   'amcharts/plugins/export/libs/xlsx/xlsx.min']
        },
        'amcharts/plugins/export/libs/pdfmake/vfs_fonts': {
            deps: ['amcharts/plugins/export/libs/pdfmake/pdfmake.min']
        },
</code></pre>
]]></description><link>https://forum.mango-os.com/post/12777</link><guid isPermaLink="true">https://forum.mango-os.com/post/12777</guid><dc:creator><![CDATA[Jared Wiltshire]]></dc:creator><pubDate>Fri, 30 Sep 2016 15:50:23 GMT</pubDate></item></channel></rss>