Changes

Jump to: navigation, search

WebAPI/WebPrintAPI

112 bytes added, 20:01, 8 March 2012
Notes
* 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 * The size of the page is defined within the PrintDocument constructor. If the defined page size doesn't fit the printer switching between different paper sizes during printing?'s page size, the content get's aligned as specified by the 'scale' property (see below).
* 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