# Export data to pdf file

**URL:** <https://discourse.nodered.org/t/export-data-to-pdf-file/5090>\
**Category:** General\
**Created:** [21 November 2018 12:58 UTC](https://discourse.nodered.org/t/export-data-to-pdf-file/5090 "2018-11-21T12:58:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![hathemi](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hathemi/32/3792_2.png) [@hathemi](https://discourse.nodered.org/u/hathemi)\
**Post date:** [21 November 2018 12:58 UTC](https://discourse.nodered.org/t/export-data-to-pdf-file/5090/1 "2018-11-21T12:58:33Z")

</div>

i wonder if it's possible to save data typed from a modal to a pdf file ? i did something similar with .csv file.  
i have searched a lot about pdf in node-red but nothing is clear yet.

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [2 December 2018 11:30 UTC](https://discourse.nodered.org/t/export-data-to-pdf-file/5090/2 "2018-12-02T11:30:02Z")

</div>

You can't do this direct but you can do it indirectly as long as you have a command-line file converter installed. Save the file as CSV and then add an exec node to run the conversion. You may need a slight delay before running the exec depending on the size of the file.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [2 December 2018 11:44 UTC](https://discourse.nodered.org/t/export-data-to-pdf-file/5090/3 "2018-12-02T11:44:31Z")

</div>

Search on [flows.nodered.org](http://flows.nodered.org) I see there is an html to pdf convertor node, so that might be helpful. Though I see it has not been updated for a while.  
[https://flows.nodered.org/node/node-red-contrib-pdf](https://flows.nodered.org/node/node-red-contrib-pdf)

---

<div class="post-metadata">

**Author:** ![drmibell](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/drmibell/32/8424_2.png) [@drmibell](https://discourse.nodered.org/u/drmibell)\
**Post date:** [2 December 2018 19:35 UTC](https://discourse.nodered.org/t/export-data-to-pdf-file/5090/4 "2018-12-02T19:35:18Z")

</div>

@hathemi, it seems to me that you have posted before on this general topic. I suggest you review the replies you received at [How can i append to PDF file in Node-Red?](https://discourse.nodered.org/t/how-can-i-append-to-pdf-file-in-node-red/5162) and [Store data in pdf file](https://discourse.nodered.org/t/store-data-in-pdf-file/5136). You may have exhausted all the help this group can offer.

My final suggestion is that you find a file translator or pipeline of translators that does the job for you and invoke it from an `exec` node. You can test it from the command line first. File permissions aside, anything you can do from the command line you can do from inside node-RED. (Apologies to @TotallyInformation. I posted before reading his comment.)
