# Node Red printing bank statement

**URL:** <https://discourse.nodered.org/t/node-red-printing-bank-statement/21294>\
**Category:** General\
**Created:** [5 February 2020 06:28 UTC](https://discourse.nodered.org/t/node-red-printing-bank-statement/21294 "2020-02-05T06:28:01Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![sokomm](https://avatars.discourse-cdn.com/v4/letter/s/b487fb/32.png) [@sokomm](https://discourse.nodered.org/u/sokomm)\
**Post date:** [5 February 2020 06:28 UTC](https://discourse.nodered.org/t/node-red-printing-bank-statement/21294/1 "2020-02-05T06:28:02Z")

</div>

Hello  
Is it possible in NR to make a flow that checks for mails whit PDF attached files and print them out?  
I have a dedicated email adres for bank statements. And a network attached printer.

Thanks

---

<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:** [5 February 2020 07:00 UTC](https://discourse.nodered.org/t/node-red-printing-bank-statement/21294/2 "2020-02-05T07:00:58Z")

</div>

Do you want to print from the machine running node red or the machine running the browser?  
Fetching the email should not be an issue though how to do that depends on your email server.

---

<div class="post-metadata">

**Author:** ![sokomm](https://avatars.discourse-cdn.com/v4/letter/s/b487fb/32.png) [@sokomm](https://discourse.nodered.org/u/sokomm)\
**Post date:** [5 February 2020 09:47 UTC](https://discourse.nodered.org/t/node-red-printing-bank-statement/21294/3 "2020-02-05T09:47:03Z")

</div>

From the mashine running node red (raspberry pi3). SMTP

---

<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:** [5 February 2020 10:45 UTC](https://discourse.nodered.org/t/node-red-printing-bank-statement/21294/4 "2020-02-05T10:45:31Z")

</div>

OK, then you need to work out how to print from the command line on a pi, then you can run that from node-red using an exec node. If you have CUPS installed on your pi to manage your printers then google suggests that is simple using the `lp` command. You might have to enquire elsewhere about how to do that if you don't have CUPS installed.

---

<div class="post-metadata">

**Author:** ![sokomm](https://avatars.discourse-cdn.com/v4/letter/s/b487fb/32.png) [@sokomm](https://discourse.nodered.org/u/sokomm)\
**Post date:** [5 February 2020 12:46 UTC](https://discourse.nodered.org/t/node-red-printing-bank-statement/21294/5 "2020-02-05T12:46:25Z")

</div>

I have installed CUPS ([Guide on how to install CUPS](https://www.howtogeek.com/169679/how-to-add-a-printer-to-your-raspberry-pi-or-other-linux-computer/)) and I'm able to print using the `lp` command.  
Now how can I check my mailbox.

---

<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:** [5 February 2020 13:01 UTC](https://discourse.nodered.org/t/node-red-printing-bank-statement/21294/6 "2020-02-05T13:01:18Z")

</div>

have you searched for/tried any email nodes?

---

<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:** [5 February 2020 13:56 UTC](https://discourse.nodered.org/t/node-red-printing-bank-statement/21294/7 "2020-02-05T13:56:01Z")

</div>

In case you don't know the place to search for existing nodes and sample flows is  
[https://flows.nodered.org/](https://flows.nodered.org/)

---

<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:** [5 April 2020 13:56 UTC](https://discourse.nodered.org/t/node-red-printing-bank-statement/21294/8 "2020-04-05T13:56:02Z")

</div>

Closed on 5 April 2020 13:56 UTC

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