{"action":"created","issue":{"url":"https://api.github.com/repos/Zettlr/Zettlr/issues/57","repository_url":"https://api.github.com/repos/Zettlr/Zettlr","labels_url":"https://api.github.com/repos/Zettlr/Zettlr/issues/57/labels{/name}","comments_url":"https://api.github.com/repos/Zettlr/Zettlr/issues/57/comments","events_url":"https://api.github.com/repos/Zettlr/Zettlr/issues/57/events","html_url":"https://github.com/Zettlr/Zettlr/issues/57","id":380718208,"node_id":"MDU6SXNzdWUzODA3MTgyMDg=","number":57,"title":"Add printing options","user":{"login":"Jaifroid","id":4304337,"node_id":"MDQ6VXNlcjQzMDQzMzc=","avatar_url":"https://avatars3.githubusercontent.com/u/4304337?v=4","gravatar_id":"","url":"https://api.github.com/users/Jaifroid","html_url":"https://github.com/Jaifroid","followers_url":"https://api.github.com/users/Jaifroid/followers","following_url":"https://api.github.com/users/Jaifroid/following{/other_user}","gists_url":"https://api.github.com/users/Jaifroid/gists{/gist_id}","starred_url":"https://api.github.com/users/Jaifroid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jaifroid/subscriptions","organizations_url":"https://api.github.com/users/Jaifroid/orgs","repos_url":"https://api.github.com/users/Jaifroid/repos","events_url":"https://api.github.com/users/Jaifroid/events{/privacy}","received_events_url":"https://api.github.com/users/Jaifroid/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-11-14T14:16:56Z","updated_at":"2018-11-20T20:04:03Z","closed_at":null,"author_association":"NONE","body":"I used the dev console to issue a `window.print();` command, and to my slight surprise, a list of printers came up. I chose a PDF printer for testing, and what came out looked like below (I cropped it to just the first few lines), and only the screen was printed, not the document. If the rendered document is in a child window / div / iframe, then issuing a print command on that div might allow printing the document. Even better would be if the Chromium native print preview dialogue would open, as it shows a nice preview of what will be printed. However I don't know whether it's included in Electron. It looks like it might be with https://electronjs.org/docs/api/web-contents#contentsprintoptions-callback : `contents.printToPDF(options, callback)` .\r\n\r\nIt may seem esoteric to want to print from Zettlr, especially as it doesn't have a concept of a \"page\", and of course we can export to PDF or to doc and print that way. But as I work more with Zettlr, I find myself wanting to print out a section quickly as a record of where I've got to, or even just to rest my eyes from the screen. I'm old-fashioned, I like hard copy, it doesn't disappear when the laptop battery runs out!!!\r\n\r\nFile this under long-term enhancement, wish-list, or whatever.\r\n\r\n![image](https://user-images.githubusercontent.com/4304337/48487211-6fa76a00-e815-11e8-9ff3-3e841bfc42b7.png)\r\n"},"comment":{"url":"https://api.github.com/repos/Zettlr/Zettlr/issues/comments/440411500","html_url":"https://github.com/Zettlr/Zettlr/issues/57#issuecomment-440411500","issue_url":"https://api.github.com/repos/Zettlr/Zettlr/issues/57","id":440411500,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0MDQxMTUwMA==","user":{"login":"Jaifroid","id":4304337,"node_id":"MDQ6VXNlcjQzMDQzMzc=","avatar_url":"https://avatars3.githubusercontent.com/u/4304337?v=4","gravatar_id":"","url":"https://api.github.com/users/Jaifroid","html_url":"https://github.com/Jaifroid","followers_url":"https://api.github.com/users/Jaifroid/followers","following_url":"https://api.github.com/users/Jaifroid/following{/other_user}","gists_url":"https://api.github.com/users/Jaifroid/gists{/gist_id}","starred_url":"https://api.github.com/users/Jaifroid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jaifroid/subscriptions","organizations_url":"https://api.github.com/users/Jaifroid/orgs","repos_url":"https://api.github.com/users/Jaifroid/repos","events_url":"https://api.github.com/users/Jaifroid/events{/privacy}","received_events_url":"https://api.github.com/users/Jaifroid/received_events","type":"User","site_admin":false},"created_at":"2018-11-20T20:04:03Z","updated_at":"2018-11-20T20:04:03Z","author_association":"NONE","body":"It's more about discoverability than faking, IMHO. I hunted around for a Print option, and even went as far as opening console and issuing `window.print()` to see if there was an under-the-hood implementation. If you don't intend to do native printing, then it's not like you're tricking anyone by providing an explanation when they press Ctrl-P or look for a Print... menu item. A Word-processor replacement needs some kind of print option, and the one you've provided is very good, but currently undiscoverable."}}
{"actor":{"display_login":"Jaifroid"}}