Tested on Ubuntu 12.04
nw version: 0.2.5
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
Confirmed, currently we don't have support for printing, it could be implemented in future.
+1 for window.print() support.
I've forked this project to see if I can add it - can I have some clue as to where I might need to look to add window.print()?
@riggerthegeek , you can find how it was implemented in the 'browser' component of Chromium and port it to Content Shell
please refer to this commit in upstream for reference: https://src.chromium.org/viewvc/chrome?view=rev&revision=140725
@riggerthegeek is there any progress on your side? or we'll start working on this feature.
@rogerwang I had a look at it, but bravely moved onto something else
printing is the most requested important feature we hope you add as soon as possible
Agreed - very important!
@rogerwang any progress on this issue? is there something I can help with?
it's working in progress.
The work include moving bunch of code from chrome/browser/printing & chrome/browser/ui/webui/print_preview to the content shell. The hard thing is to cut the dependencies on profile and others of the browser component. So it may not to be done in this release.
@rogerwang thanks for the update :)
@rogerwang Hi Roger, any news on this issue? Thanks!
I'm still moving the print view support from browser to content shell, which need some effort. The print backend support would be simpler.
I'll put the code WIP into a branch so the progress would be more visible. thanks
thanks for the update :)
Due to the demand on this feature, we'd like to put it as the top 1 in TODO list for major features. And in our release plan soon to be announced, it will be in our next major release (0.5.0), which is scheduled in late March.
great news :)
looking forward to this feature, thanks!
One more team looking forward to this! Great project, thanks!
Also looking forward to this feature - a must!
Will the printing functionality support the "--kiosk-printing" parameter, similar to the current kiosk mode for silent printing?
For my current project I will soon have to chose wether to implement the reporting feature with a pdf-generation library, or rely on the printing in node-webkit. Obviously I would prefer the latter. So I'm very interested in hearing how this feature is coming along. (seeing that the issue is "due" in just a day now). PS: Great work so far on this project -- you are doing a great service to many a developer.
Thanks for the update, Roger. I understand these things take time and will be patiently awaiting 0.5.0. I can live without the preview for now, but it will be very good to have as well, when it comes.
@rogerwang when is the expected release date for 0.5.0?
FYI. Print support (window.print) is released in 0.5.0 RC: https://groups.google.com/d/msg/node-webkit/QactmnGNN3Q/prWFJ2znIEIJ
Print preview support will be added before 0.5.2
Hi Roger, great news, can't wait to try it out!
It's nice to see window.print(), but how it printed ?
By screenshot of current frame ?
Hope print will have landscape option and margin props ;)
Just realized I never came back here to say a big thank you to @rogerwang for getting printing support in. So far it's working out great. Huge props!
Big +1 From me. Glad to see this is being worked on.
+1 for @Denouncer 's request
--kiosk-printing parameter would be a great.
Currently i tried adding this parameter to the args like "chromium-args" : "--kiosk-printing", but it didnt work.
"chromium-args" : "--kiosk-printing",
Should this issue be closed?
@DanielVF No, it hasn't been implemented; note the TBD milestone.
@jonathandelgado Gotcha. I had thought from the announcement that it was released.
That announcement says that window.print() works but print previews do not.
It's just that — no one bothered to create yet another issue for the print preview feature, and the lack of previews is what is holding this issue currently.
In addition, there was talk about implementing a silent print API, not sure if that is still in the works.
is there any progress with the print preview feature?
+1 for silent print
+1 for Silent Printing...
Any place where I can try to read and implement from, may be from chromium code?
Would print preview allow for programmatic "save page as pdf"? that's something I would love for my app right now
+1 silent printing / kiosk printing
is someone working in print preview ?
+1 for print preview
+1 for print preview
Any progress on print preview ?
+1 for Silent Printing.
+n for print preview !!!!!!
+1 for Print Preview
I have the last version and can not print in windows with mozilla pdfjs. But it works in mac and linux. Pdfjs is in a iframe.
Any update regarding Print Preview Feature.?
+1 for silent printing
NW 0.12.0 - window.print() stopped working. 0.11.6 was working fine.
I am 1+ for silent printing.
However. I might add printing and even silent printing can be done in NW.js using node. Possible methods:
+1 for silent printing!