Solved

How to silent print from safari browser

Posted on 2016-08-05
6
172 Views
Last Modified: 2016-08-14
I have a web based kiosk which can print pdf coupon at the kiosk printer (MAC OS + CUPS driver) from a JSP page in Firefox browser, by using one of the options of firefox--- "print.always_print_silent option." , the print window popup would not show up and the printing is  perfect. however, due to Firefox version update so frequently and always have trouble to match up with the Adobe flash version, so I have to disable the update of Firefox----please refer to the attachment for details, the good thing for Safari browser is it never show this annoying update alert on the page. So  I am thinking maybe switching the browser from Firefox to Safari is the solution. the biggest challenge to adopt Safari is that I have no idea how to make Safari to print silently------ the popup window always show up after user click on print button.

I did google around, however, not seen any practical solution yet.

stackoverflow.com/questions/21908/silent-printing-in-a-web-application

Another option is to use Chrome, but decide not to after seeing some troublesome response on the internet.

The same question had been asked by others:

https://discussions.apple.com/thread/3482698?tstart=0

Any practical solution would be appreciated, but exclude the cloud printing service because those kiosks will not be able to talk to the third party cloud.
Screen-Shot-2016-08-05-at-2.55.32-PM.png
0
Comment
Question by:arthurwang
  • 3
  • 2
6 Comments
 
LVL 79

Expert Comment

by:David Johnson, CD, MVP
ID: 41745532
Don't use a browser but an app instead. That or use a 3rd party option that will detect the printer box and select (press) the right options.

How would you feel if a malicious website started a print queue of 1,000 black pages?
0
 

Author Comment

by:arthurwang
ID: 41749398
This is not a practical solution for my case because all the kiosks are placed indoor of casinos. Only those kiosk are connected to the dedicated server in the casino server center by LAN, so I consider it's relatively safe unless someone click the printer 1,000 times on the page, however, the print button will disappear after one click.
0
 
LVL 52

Accepted Solution

by:
Scott Fell,  EE MVE earned 500 total points
ID: 41750687
There is a great solution I use myself from https://qz.io/

There is a free version you can use as a trial but you will want the paid version for production. The only difference I believe is the paid has a certificate and will not throw erros or messages.

I have this running in a web based kiosk for an ERP system I built myself and recommend it. The devloper and staff are very helpfull with issues.

It works by installing their software on the computer you want to print from then calling it using javascript
var config = qz.configs.create("Printer Name");
var data = [{
  type: 'html',
  format: 'file', // or 'plain' if the data is raw HTML
  data: 'assets/html_sample.html'
}];
qz.print(config, data).catch(function(e) { console.error(e); });

Open in new window

0
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 

Author Closing Comment

by:arthurwang
ID: 41751115
It is a practical solution for sure even though it's an expensive one--$399 a year, not sure if it's for one kiosk license or could possibly cover thousands kiosks,  but will contact their support to find out later. If it's just for one kiosk installation, it would certainly take me to a serious cost discussion in our company.

Thanks for the solution.
0
 
LVL 52

Expert Comment

by:Scott Fell, EE MVE
ID: 41751121
I think you will find the licensing favoriable https://qz.io/wiki/faq#licensing

No client/user limitations
No domain restrictions
A single license will suffice for 99% of organizations

When you are used to 'free' yes, it does seem high. However, if you only spent 3 hours to try and do this on your own, it would pay for itself.  The realiity is it would take many months to figure all this out and do it on your own.  The help you get is very good.  You are talking about 1000 installations, that's 40 cents each.   No brainer!      

I spent months trying to come up with solution like this a few years ago and came accross this in a forum.  I have been with it for a few versions.
0
 

Author Comment

by:arthurwang
ID: 41755402
Thanks, Scott, I totally agree with what you said, the cost is very reasonable for "No client/user limitations".
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article discusses four methods for overlaying images in a container on a web page
An enjoyable and seamless user experience can go a long way on an eCommerce site. While a cohesive layout and engaging copy play roles in creating a positive user experience, some sites neglect aspects that seem marginal but in actuality prove very …
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
Shows how to create a shortcut to site-search Experts Exchange using Google in the Chrome browser. This eliminates the need to type out site:experts-exchange.com whenever you want to search the site. Launch the Search Engine Menu: In chrome, via you…

862 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

25 Experts available now in Live!

Get 1:1 Help Now