pdf print to local printer

Post Reply
Robbie
Member
Posts: 156
Joined: Tue Apr 02, 2019 12:48 pm

pdf print to local printer

Post by Robbie »

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).
jan_suhr
Advanced member
Posts: 726
Joined: Fri Nov 04, 2011 1:12 pm
Location: Nyköping, Sweden

Re: pdf print to local printer

Post by jan_suhr »

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
Jan Suhr
Color Consult AB
Sweden
=============
Check out my apps
Shawn_Anderson
Newbie
Posts: 14
Joined: Mon Apr 17, 2017 3:45 pm

Re: pdf print to local printer

Post by Shawn_Anderson »

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%%"
User avatar
JimmyHartington
Advanced member
Posts: 536
Joined: Tue Mar 22, 2011 7:38 am

Re: pdf print to local printer

Post by JimmyHartington »

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.
User avatar
tdeschamps
Member
Posts: 164
Joined: Tue Jun 01, 2021 11:57 am
Location: Lille - France
Contact:

Re: pdf print to local printer

Post by tdeschamps »

JimmyHartington 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.
On windows, you can also install Sumatra PDF, who does have a CLI for printing : https://www.sumatrapdfreader.org/docs/C ... -arguments
jan_suhr
Advanced member
Posts: 726
Joined: Fri Nov 04, 2011 1:12 pm
Location: Nyköping, Sweden

Re: pdf print to local printer

Post by jan_suhr »

The Node.js, NPM pdf-to-printer use Sumatra PDF
Jan Suhr
Color Consult AB
Sweden
=============
Check out my apps
Robbie
Member
Posts: 156
Joined: Tue Apr 02, 2019 12:48 pm

Re: pdf print to local printer

Post by Robbie »

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 this

Code: 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%%"
Robbie
Member
Posts: 156
Joined: Tue Apr 02, 2019 12:48 pm

Re: pdf print to local printer

Post by Robbie »

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"
smithcohn12
Newbie
Posts: 1
Joined: Thu Jan 23, 2025 10:31 am

Re: pdf print to local printer

Post by smithcohn12 »

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
Robbie
Member
Posts: 156
Joined: Tue Apr 02, 2019 12:48 pm

Re: pdf print to local printer

Post by Robbie »

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.
Post Reply