WebAPI/WebPrintAPI: Difference between revisions

m (Forbid "px")
Line 11: Line 11:
* Use points as metric for printing (72 points per inch)
* Use points as metric for printing (72 points per inch)
* 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.
* 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?
49

edits