xpra icon
Bug tracker and wiki

Opened 10 days ago

Closed 10 days ago

Last modified 7 days ago

#1572 closed enhancement (invalid)

Will html5 client be able to list client's local printers in browser and print on it !!!!

Reported by: Rahul Dange Owned by: Antoine Martin
Priority: major Milestone: 2.1
Component: html5 Version: trunk
Keywords: html5 printing Cc:

Description (last modified by Antoine Martin)

Will html5 client be able to list client's local printers in browser and print on it !!!!
As of xpra desktop client using launcher(windows/ubuntu) does i.e(it shows & prints on local client printers)

Xpra server running on lubuntu 16.04 :  dpkg -l  | grep xpra
ii  xpra  2.1-20170402r15494-1 i386  tool to detach/reattach running X programs

Xpra windows client running on windows 7(32bit) : xpra version 2.0.2

Xpra ubuntu client running on ubuntu 14.04 :

dpkg -l | grep xpra
ii  xpra  1.0.5-r15455-1	i386 	tool to detach/reattach running X programs

Change History (6)

comment:1 Changed 10 days ago by Antoine Martin

Description: modified (diff)
Resolution: invalid
Status: newclosed

No.
Browsers do not allow Javascript code to query the hardware.

(just to clarify: printing from the HTML5 client should already work, and the print dialog should allow you to choose the printer - but this all happens within the brower's UI, client side)


This could be done using a browser extension (ie: activex, flash, native chrome extension, etc)
Then we would also need more code to skip the print dialog and go straight to the printer selected.

comment:2 Changed 10 days ago by Rahul Dange

Thanks for quick reply.

I got your point but are there any pointers / examples for developing native chrome extension !

Last edited 10 days ago by Rahul Dange (previous) (diff)

comment:3 Changed 10 days ago by Antoine Martin

See #1573.

comment:4 Changed 10 days ago by Rahul Dange

Thanks Antoine.

Will look into it.

comment:5 Changed 7 days ago by Rahul Dange

Hi Antione,

Just being curious,

How xpra handles client side printing !!!

For e.g when i connect to xpra server from windows xpra launcher(desktop client) , server shows windows client's local printer in its printer dialog box list and also prints it to clients selected printer correctly, all this done without having python 2.7 installed on that windows machine...

Also in server i saw all windows client printer listed in cups(i.e by command lpstat -v ) and after session disconnect clients printer are gone..

this is just awesome. How it is done !!!

websockify ???
how xpra identify printers and creates printer queue for that session !!

comment:6 Changed 7 days ago by Antoine Martin

See this printing wiki edit.

The actual code can be found here: browser/xpra/trunk/src/xpra/platform
(just look for all the "printing" files there and in each platform specific subfolder)

Last edited 7 days ago by Antoine Martin (previous) (diff)
Note: See TracTickets for help on using tickets.