Skip to main content
Participant
October 10, 2018
Question

How to use Coldfusion9 to send jobs to CUPS for printing a pdf through a network-printer?

  • October 10, 2018
  • 1 reply
  • 991 views

Hi,

I am working on printing the labels with a particular network printer ( TCP/IP ), when the user click a button on UI.

CUPS is installed but didn't configure the printer yet. Whats the next step, after configuring it in CUPS control panel?

Have no clue on how to get this done!!!

We are using Coldfusion 9.

Thanks

This topic has been closed for replies.

1 reply

Charlie Arehart
Community Expert
Community Expert
October 10, 2018

I'm not aware of what CUPS is, but to print from CF (as in, to print from within a CF page--as opposed to printing from a user's browser) , you would use the CFPRINT tag. See the docs (CFML Reference and also the CF Developer Guide) which each have substantial documentation on how to configure and use that. (You need to install the printer driver on the CF server, and  then need to see that CF has found it, as shown in the "settings summary" page of the CF admin.)

/Charlie (troubleshooter, carehart. org)
vinnu543Author
Participant
October 10, 2018

We use docker( with UNIX distribution  ) , So we had to build the CUPS Image and configure the network printer, I have been looking for information in internet..to send the jobs to CUPS...I haven't found anything, yet.

WolfShade
Legend
October 10, 2018

For remote printing of PDFs, we initially considered a CF-based solution, but finally went with a Windows program called "WatchDirectory".  We use ColdFusion to perform a on-demand FTP transfer to a remote host (secured using IP restrictions) and the WatchDirectory program automatically monitors a sub-directory and instantly prints the file to a configured printer.  (This solution requires a PC running Windows.)  Using this program also enabled our clients to set up additional automation tasks on their PC without us having to program anything for them.  We've been using this technique for over 10 years and there hasn't been any problems.


It's kind of late, but were you aware that CF has the ability that WatchDirectory does?

I've never used it in production, only played around with it, but I've set up automated tasks when a file is uploaded via form post.  Works quite well.  I don't know how much you paid for WatchDirectory, but unless it can do more than what CF can do I couldn't justify the price.

V/r,

^ _ ^

PS..  Sorry, didn't mean to hijack this thread.