Im getting a xml file and PDF file from our customer by email. I need a way in switch to print the pdf to a local printer in my office. we are building a flow that will read the xml and automatic make a order form but i want to print out the PDF file to be witch the order form, so the guys in the factory can see what the need to do.
If hav tried acrobat. but that does not work. (it opens acrobat reader but nothing happens).
pdf print to local printer
Re: pdf print to local printer
There are a few apps that will do that for you.
This is a good one that supports almost every printer. It is a service that you pay for but it is not expensive
https://www0.enfocus.com/en/appstore/product/printnode
This is a good one that supports almost every printer. It is a service that you pay for but it is not expensive
https://www0.enfocus.com/en/appstore/product/printnode
-
Shawn_Anderson
- Newbie
- Posts: 14
- Joined: Mon Apr 17, 2017 3:45 pm
Re: pdf print to local printer
I had to set something similar up for printing from a Mac and ended up using the Run Command app and the lp command. You'd need to do some digging for the exact printer name and options but it should work with something like this
Code: Select all
lp -d [i]printername[/i] -o InputSlot=tray-1 -o media=letter "%%InputFilePath%%"- JimmyHartington
- Advanced member
- Posts: 536
- Joined: Tue Mar 22, 2011 7:38 am
Re: pdf print to local printer
On Windows I have used a node.js script with this package https://www.npmjs.com/package/pdf-to-printer
This has worked very well sending labels to a Zebra label printer.
This has worked very well sending labels to a Zebra label printer.
- tdeschamps
- Member
- Posts: 164
- Joined: Tue Jun 01, 2021 11:57 am
- Location: Lille - France
- Contact:
Re: pdf print to local printer
On windows, you can also install Sumatra PDF, who does have a CLI for printing : https://www.sumatrapdfreader.org/docs/C ... -argumentsJimmyHartington wrote: ↑Thu Aug 13, 2026 4:04 pm On Windows I have used a node.js script with this package https://www.npmjs.com/package/pdf-to-printer
This has worked very well sending labels to a Zebra label printer.
Re: pdf print to local printer
The Node.js, NPM pdf-to-printer use Sumatra PDF
Re: pdf print to local printer
Shawn_Anderson wrote: ↑Thu Aug 13, 2026 2:29 pm I had to set something similar up for printing from a Mac and ended up using the Run Command app and the lp command. You'd need to do some digging for the exact printer name and options but it should work with something like thisCode: Select all
lp -d [i]printername[/i] -o InputSlot=tray-1 -o media=letter "%%InputFilePath%%"
Well Im trying this option on my Mac but can not get it to work yet. the files are going true the run command but nothing happens.
lp -d Brother_HL_L2400DWE__ec916133479d_ (default) -o InputSlot=tray-1 -o media=letter "%%InputFilePath%%"
Re: pdf print to local printer
After a day trying and google if found a working solution with the execute command in switch.
Command or path : /user/bin/lp
arguments : -d "my printer name" "%1"
Command or path : /user/bin/lp
arguments : -d "my printer name" "%1"
-
smithcohn12
- Newbie
- Posts: 1
- Joined: Thu Jan 23, 2025 10:31 am
Re: pdf print to local printer
I’ve run into this with Switch before; is there any dedicated print utility in the Switch flow, which is much more reliable for automatically sending the generated PDF to a local Windows printer?
Smith Cohn NYCwordle unlimited
Re: pdf print to local printer
I have not found any. And for all the other things you need to subscribe ore pay. This does the trick a very well for us.