#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 )
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 (7)
comment:1 Changed 4 years ago by
Description: | modified (diff) |
---|---|
Resolution: | → invalid |
Status: | new → closed |
comment:2 Changed 4 years ago by
Thanks for quick reply.
I got your point but are there any pointers / examples for developing native chrome extension !
comment:5 Changed 4 years ago by
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 4 years ago by
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)
comment:7 Changed 3 months ago by
this ticket has been moved to: https://github.com/Xpra-org/xpra/issues/1572
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.