Bug 4823

Summary: Local printing support for Web Access
Product: ThinLinc Reporter: Samuel Mannehed <samuel>
Component: Web AccessAssignee: Peter Åstrand <astrand>
Status: NEW ---    
Severity: Normal CC: wilsj
Priority: P2    
Version: trunk   
Target Milestone: MediumPrio   
Hardware: PC   
OS: Unknown   
Acceptance Criteria:
Bug Depends on: 4859    
Bug Blocks:    

Description Samuel Mannehed cendio 2013-10-02 13:58:34 CEST
Our HTML5 client does not support printing. It should be investigated whether it is possible and if so what the best way to do it would be.

Can we use the same server-side method as for the native client (That is, sending the document as PDF over the network)? Can the printing process be initiated through JavaScript?
Comment 1 Peter Åstrand cendio 2013-11-13 09:06:15 CET
Google Docs creates a PDF when you print, we should probably do the same. 

One drawback is that when the PDF opens (in Evince, Acrobat etc), the user needs to manually "print again" by pressing Ctrl-P or similar. According to 
http://stackoverflow.com/questions/205180/how-to-print-a-pdf-from-the-browser, it is possible to embed Javascript which causes the print dialog to open automatically when the PDF is opened. A comment says that Google Docs does this, but that doesn't work for me now when I'm testing.