Changes

Jump to: navigation, search

WebAPI/WebPrintAPI

353 bytes added, 19:52, 8 March 2012
Notes
* Use of "px" doesn't make sense. Therefore they are forbidden (e.g. in font-size="12px") - use "pt" instead.
* Use of ctx.putImageData(...) and ctx.getImageData(...) doesn't make sense as there might not be something like "pixels" on the printer backend.
* If the user selects File -> Print from the menu, the developer can skip the printing listening to the window.onBeforePrint, create a PrintDocument object and print this one. This allows "custom" page printing as you could expect it to be inside some apps (Google Docs etc).* There is only one page size per PrintDocument/PrintJob. Have you ever seen your printer switching between different paper sizes during printing?
* Open Questions
** What is (0,0)? The top left corner of the physical page OR of the page taking into account the print margin?
49
edits

Navigation menu