After thinking about the proposed ideas in Robert's first reply, based on the feedback to my raised questions (you guys are awesome, thanks!) and talking to some other people, I think it's best to drop the WebPrintAPI proposal and go with what Robert proposed.
That requires two things to get implemented in Gecko: i) Implement a subset of CSS3PagedMedia to set the margin (at least the case = 0 to hide all the header/footer) and the page size. ii) Implement a new callback on the canvas element that is called during the actual printing to print directly to the printing backend. What's the best way to get the implementation going? For i), there seems to be a bug already: https://bugzilla.mozilla.org/show_bug.cgi?id=115199 I tried to understand what the patches are doing and couldn't figure it out for most parts. For i), is the way to implement this by continue working on bug 115199, or should there be a new bug that tries to implement only a very dump subset of the CSS3PagedMedia, such that one can set the margin to 0 and the page-size and that's it? >From my intuition, the second part ii) might be "easier" to implement then the >first part, as it is more contained and doesn't require to deal with new CSS >rules. I'm therefore wondering if you think this is something I could try to >implement. So far I have some basic understanding about how the printing stuff works, how the CanvasReneringContext is defined in the IDL and cpp file etc. Could someone give me some pointers where the actual printing of a canvas element to the printing context happens, such that I could try to implement the proposed callback? Best, Julian _______________________________________________ dev-tech-layout mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-layout

