We need to implement the CSS3 stuff anyway. How about: -- Implement CSS3 Paged Media sufficient to make headers/footers and margins go away, select page orientation and size. That shouldn't be too hard. -- Add an event to canvas that fires per-page during printing to render that canvas content while we're printing the page it's on. This event would provide a special canvas context that's compatible with the 2d interface but internally renders at higher resolution (or possibly emits PS/PDF directly). Then you could create a print document that's just a series of canvases, with the appropriate CSS to remove headers/footers/margins etc, and as we print each page we'll run the callback on each canvas to paint it more accurately. Any temporary resources could be thrown away after painting that page.
Rob -- “You have heard that it was said, ‘Love your neighbor and hate your enemy.’ But I tell you, love your enemies and pray for those who persecute you, that you may be children of your Father in heaven. ... If you love those who love you, what reward will you get? Are not even the tax collectors doing that? And if you greet only your own people, what are you doing more than others?" [Matthew 5:43-47] _______________________________________________ dev-tech-layout mailing list dev-tech-layout@list... https://lists.mozilla.org/listinfo/dev-tech-layout