# Print Out a group/notification or pdf file

**URL:** <https://discourse.nodered.org/t/print-out-a-group-notification-or-pdf-file/38754>\
**Category:** Dashboard\
**Created:** [7 January 2021 21:20 UTC](https://discourse.nodered.org/t/print-out-a-group-notification-or-pdf-file/38754 "2021-01-07T21:20:13Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![elboran](https://avatars.discourse-cdn.com/v4/letter/e/b77776/32.png) [@elboran](https://discourse.nodered.org/u/elboran)\
**Post date:** [7 January 2021 21:20 UTC](https://discourse.nodered.org/t/print-out-a-group-notification-or-pdf-file/38754/1 "2021-01-07T21:20:13Z")

</div>

Hi, I have a problem with the printing documents in node-red Dashboard. I couldn't found any information about printing out. I have a document at the path of home/file.pdf and i want to print out this document. Node-red installed on a ubuntu 18.04 and node-red version is v1.0.3.

Thanks for your help.

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [8 January 2021 09:41 UTC](https://discourse.nodered.org/t/print-out-a-group-notification-or-pdf-file/38754/2 "2021-01-08T09:41:14Z")

</div>

have you done a google search? (try 'printing with node-red')

If so, what part are you having problems with?

---

<div class="post-metadata">

**Author:** ![elboran](https://avatars.discourse-cdn.com/v4/letter/e/b77776/32.png) [@elboran](https://discourse.nodered.org/u/elboran)\
**Post date:** [9 January 2021 18:49 UTC](https://discourse.nodered.org/t/print-out-a-group-notification-or-pdf-file/38754/3 "2021-01-09T18:49:30Z")

</div>

Yes, I have.  
I used node-red in industrial site and i have a PDF reporting system. PDF reporting working perfect but when i tried to print out the pdf document directly it fails. I can generate and download this PDF document dynamicly on every device (mobile or desktop). So I need to print out this document via Node-red Dashboard Button. ( not need for mobile devices now).

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [9 January 2021 20:11 UTC](https://discourse.nodered.org/t/print-out-a-group-notification-or-pdf-file/38754/4 "2021-01-09T20:11:20Z")

</div>

For the time being, forget about the dashboard. Concentrate from getting a file to print. It is all going to depend on what type printer, is it a network printer, what OS is node-red running on, can the device running NR print to the printer outside NR?

What have you tried so far?

---

<div class="post-metadata">

**Author:** ![elboran](https://avatars.discourse-cdn.com/v4/letter/e/b77776/32.png) [@elboran](https://discourse.nodered.org/u/elboran)\
**Post date:** [9 January 2021 20:23 UTC](https://discourse.nodered.org/t/print-out-a-group-notification-or-pdf-file/38754/5 "2021-01-09T20:23:46Z")

</div>

Nore-Red installed on cloud computer (DigitalOcean) and OS is Ubuntu 18.04. That's why i tried it Dashboard. I thought that if I can open PDF document in browser it is easy to print out.  
I Tried;  
1- Open PDF document in browser. When I puh the button or trigger it PDF document download to my PC.  
2- Forward all data and image file to the template\_ui and print out the group. Nothing happen.  
3- Forward all data and image file to the template\_ui and print out the screenshot. Nothing happen.

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [9 January 2021 23:29 UTC](https://discourse.nodered.org/t/print-out-a-group-notification-or-pdf-file/38754/6 "2021-01-09T23:29:25Z")

</div>

When you say you open the PDF in your browser, is the PDF stored on your computer?

> [@elboran](#):
>
> Open PDF document in browser. When I puh the button or trigger it PDF document download to my PC.

I'm sorry but I don't understand. Where is the PDF? On your computer ? What button are you pushing?

Can you provide your flow?

---

<div class="post-metadata">

**Author:** ![elboran](https://avatars.discourse-cdn.com/v4/letter/e/b77776/32.png) [@elboran](https://discourse.nodered.org/u/elboran)\
**Post date:** [10 January 2021 09:17 UTC](https://discourse.nodered.org/t/print-out-a-group-notification-or-pdf-file/38754/7 "2021-01-10T09:17:59Z")

</div>

Flow is to complicated. PDF file is on the cloud computer and the path is home/xxx.pdf.

 ![1](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/c/4/c4f330fc1251c97cee5e26a47b6fb1eea37603e0.jpeg)

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [10 January 2021 10:50 UTC](https://discourse.nodered.org/t/print-out-a-group-notification-or-pdf-file/38754/8 "2021-01-10T10:50:17Z")

</div>

> "Break down the problem into managable pieces"

Since you are able to create the PDF, you should be able to create a test flow to work on printing the file. All you need is an `inject` node to start this test flow. Once you have this test flow put together, you will be able to share it because it shouldn't be too complicated.

Also, you haven't said what type of printer, is it connected to the computer accessing the dashboard or is it a network computer?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [9 February 2021 10:50 UTC](https://discourse.nodered.org/t/print-out-a-group-notification-or-pdf-file/38754/9 "2021-02-09T10:50:18Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
