Solved

How to silent print from safari browser

Posted on 2016-08-05
6
388 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
6 Comments
 
LVL 82

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 53

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
Turn your laptop into a mobile console!

The CV211 Laptop USB Console Adapter provides a direct Laptop-to-Computer connection for fast and easy remote desktop access with no software to install.

 

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 53

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

Learn how to optimize MySQL for your business need

With the increasing importance of apps & networks in both business & personal interconnections, perfor. has become one of the key metrics of successful communication. This ebook is a hands-on business-case-driven guide to understanding MySQL query parameter tuning & database perf

Question has a verified solution.

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

This article discusses how to implement server side field validation and display customized error messages to the client.
This article shows how to get a list of available printers for display in a drop-down list, and then to use the selected printer to print an Access report or a Word document filled with Access data, using different syntax as needed for working with …
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Progress

617 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