49
edits
(Remove onBefore/AfterPrint callbacks from == Example == as well.) |
(→Notes) |
||
| Line 11: | Line 11: | ||
* Use of "px" doesn't make sense. Therefore they are forbidden (e.g. in font-size="12px") - use "pt" instead. | * 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. | * 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 | * 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 | * Open Questions | ||
** What is (0,0)? The top left corner of the physical page OR of the page taking into account the print margin? | ** What is (0,0)? The top left corner of the physical page OR of the page taking into account the print margin? | ||
edits