Skip to content
New issue

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

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

printing is broken on Windows #865

Closed
bwin opened this issue Nov 25, 2014 · 8 comments · Fixed by #1532
Closed

printing is broken on Windows #865

bwin opened this issue Nov 25, 2014 · 8 comments · Fixed by #1532

Comments

@bwin
Copy link
Contributor

bwin commented Nov 25, 2014

I tested with atom-shell 0.16.3, 0.17.2 & 0.19.4 (all 32bit) on Windows 7 Home Premium 64bit.
(Also tested on another Win7 HP 64 in a VirtualBox with the same result.)
This gist contains the test-app.
Printing silent or not has no effect on this.
(I can totally live with the button not being printed right, but it has nothing to do with it either. Printing a page without a button leads to the same result.)

This is what the window to be printed looks like:
screenshot 2014-11-25 20 30 56

And this is the result I get (printed throught PDFCreator):
screenshot 2014-11-25 20 30 59

This is printed (edit: directly) on a real printer:
atomshellprinting

What confuses me most, is that the pdf's orientation is different and the text doesn't look the same in pdf vs. printed paper version. (edit: I chose portrait in PDFCreator)

@bwin
Copy link
Contributor Author

bwin commented Nov 25, 2014

Also tried with explicitly named fonts (Arial, Roboto, Lucida Console) with the same result.
Images on the other hand seem to be printed fine (but the quality may be not as good as the original).

@bwin
Copy link
Contributor Author

bwin commented Nov 25, 2014

It's hard to notice with the rotated chars and strike-trough and all, but I think I'm pretty sure the printed version doesn't actually use the font it's supposed to.

BTW the fonts I tested are locally installed.
When I try it with a dynamically loaded webfont from Google ('Bitter' in this example, tried to use something I hadn't installed) atom-shell crashes on print. (It lets me select a printer and then the window content gets white. If I have the devtools open I get an error.)

screenshot 2014-11-25 23 09 33

@bwin
Copy link
Contributor Author

bwin commented Dec 13, 2014

😭 For me things got worse with 0.20.0.
On Windows it doesn't print (anything) anymore. Edit: After a while the print jobs just disappear from the queue.

It seems odd, that the windows printer spool can't show the page count ("Seiten" in this german screenshot):
screenshot 2014-12-13 09 57 16

@zcbenz I would love if you could look into this.

Edit: Or am I doing something wrong? Nobody confirmed this till now. Am I the only one with this problem? Can anybody print on windows with a recent Atom-Shell?

@bwin
Copy link
Contributor Author

bwin commented Dec 21, 2014

Printing is really important for my current app... 😢
I'm currently using node-printer as a workaround to at least print pure raw text. This is bad.

@zcbenz
Copy link
Contributor

zcbenz commented Dec 22, 2014

The printing code on Windows is quite complicated so it will take some time to be fixed, but this is absolutely on my TODO list.

@bwin
Copy link
Contributor Author

bwin commented Dec 22, 2014

Thanks. 👍

Cheng Zhao notifications@github.com schrieb am Mo., 22. Dez. 2014 04:08:

The printing code on Windows is quite complicated so it will take some
time to be fixed, but this is absolutely on my TODO list.


Reply to this email directly or view it on GitHub
#865 (comment).

@pushpak
Copy link

pushpak commented Dec 24, 2014

👍 for printing on windows

@hokein
Copy link
Contributor

hokein commented Apr 30, 2015

Hi, all. I'll work on the printing issue this summer. You can see the progress at #1532 .

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

Successfully merging a pull request may close this issue.

4 participants