# Downloading charts from node red ui into pdf

**URL:** <https://discourse.nodered.org/t/downloading-charts-from-node-red-ui-into-pdf/90275>\
**Category:** General\
**Created:** [19 August 2024 19:29 UTC](https://discourse.nodered.org/t/downloading-charts-from-node-red-ui-into-pdf/90275 "2024-08-19T19:29:43Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![smanjunath211](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/smanjunath211/32/95742_2.png) [@smanjunath211](https://discourse.nodered.org/u/smanjunath211)\
**Post date:** [20 August 2024 01:12 UTC](https://discourse.nodered.org/t/downloading-charts-from-node-red-ui-into-pdf/90275/2 "2024-08-20T01:12:48Z")

</div>

> [@Display a chart in PDF](https://discourse.nodered.org/t/display-a-chart-in-pdf/20040/14):
>
> I prepared a working example: There is still an error: "SyntaxError: Unexpected token S in JSON at position 0", but the PDF is generating correctly. [{"id":"e26c21c5.1443c","type":"function","z":"783f535.d2680ac","name":"contents","func":"//globals\nvar CompanyName = \"CompanyName\";\nvar CompanyLogoURL = \"https://dynamic.brandcrowd.com/asset/logo/522494d1-50ee-4316-bbc9-58b1f90bab5e/logo?v=4\";\n\n//flow variables\nvar startdate = 1578485832986; //date in…

---

_[View the full topic](https://discourse.nodered.org/t/downloading-charts-from-node-red-ui-into-pdf/90275)._
