Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

window.print() does not work #56

Closed
niloy opened this Issue Sep 19, 2012 · 64 comments

Comments

Projects
None yet

niloy commented Sep 19, 2012

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.

Contributor

zcbenz commented Sep 20, 2012

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()?

Member

rogerwang commented Oct 29, 2012

@riggerthegeek , you can find how it was implemented in the 'browser' component of Chromium and port it to Content Shell

Member

rogerwang commented Nov 1, 2012

please refer to this commit in upstream for reference: https://src.chromium.org/viewvc/chrome?view=rev&revision=140725

Thanks Roger.

@ghost ghost assigned zcbenz Nov 2, 2012

@ghost ghost assigned rogerwang Dec 1, 2012

Member

rogerwang commented Dec 1, 2012

@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

prophet commented Dec 3, 2012

Agreed - very important!

@rogerwang any progress on this issue? is there something I can help with?

Member

rogerwang commented Dec 10, 2012

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!

Member

rogerwang commented Jan 7, 2013

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 :)

Member

rogerwang commented Jan 18, 2013

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

great news :)

zycbob commented Jan 23, 2013

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?

zaceno commented Mar 18, 2013

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.

Member

rogerwang commented Mar 19, 2013

On Tue, Mar 19, 2013 at 7:24 AM, Zacharias Enochsson <
notifications@github.com> wrote:

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)

Thanks for your interesting in node-webkit. The printing feature is being
worked on as well as the rebase to latest upstream. 0.5.0 is expected to be
released in weeks. The issue milestone is a little bit old and not updated.

btw, the printing support to be released in 0.5.0 has no printing preview
support, which is to be released in later versions.

Roger

zaceno commented Mar 19, 2013

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.

Xanor commented Mar 27, 2013

@rogerwang when is the expected release date for 0.5.0?

Member

rogerwang commented Apr 11, 2013

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 ?
node: "0.8.17"
node-webkit: "0.5.0-rc"
Hope print will have landscape option and margin props ;)

zaceno commented May 23, 2013

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!

Seconded

Big +1 From me. Glad to see this is being worked on.

@bear888 bear888 referenced this issue Sep 24, 2013

Closed

Print Preview #1139

pushpak commented Sep 29, 2013

+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.

DanielVF commented Feb 6, 2014

Should this issue be closed?

@DanielVF No, it hasn't been implemented; note the TBD milestone.

DanielVF commented Feb 6, 2014

@jonathandelgado Gotcha. I had thought from the announcement that it was released.

Contributor

Mithgol commented Feb 7, 2014

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?

chriddyp commented Jul 3, 2014

Would print preview allow for programmatic "save page as pdf"? that's something I would love for my app right now

inluxc commented Jul 14, 2014

+1

+1 silent printing / kiosk printing

is someone working in print preview ?

+1 for print preview

Rameshv commented Oct 3, 2014

+1 for print preview

Any progress on print preview ?

+1 for Silent Printing.

+1

+n for print preview !!!!!!

+1 for Print Preview

inluxc commented Jan 18, 2015

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.?

majodev commented Mar 30, 2015

+1

+1 for silent printing

hvva commented Apr 6, 2015

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:

  • Use a printing NPM
  • Execute a batch or shell script by calling it with node.js/io.js
  • Send one with node.js/io.js via the IPP / network printer

simoami commented May 1, 2015

+1 for silent printing!

+1

+1 for silent print

keanass commented Jan 3, 2016

+1

+1 for Print Preview

Owner

GnorTech commented Mar 31, 2016

@rockedpanda print preview is supported in nw 0.13.

I'm closing the issue. And silent printing is tracked in #1263

@GnorTech GnorTech closed this Mar 31, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment