I'm writing a Java application that embeds Mozilla-based browser using
JavaXPCOM/Xulrunner. I'm currently trying to make embedded browser print
its contents.
nsIWebBrowser component also implements nsIWebBrowserPrint interface
that can be used for printing. However, it is suitable only when I want
to print only embedded browser itself, without containing window.
All I need is to have an ability to get an image of browser content. For
example, on Windows platform the ideal case would be: I give the browser
HDC and it draws itself on it, then I print it myself. I doubt there is
such API in Mozilla, but there may be something close to it.
I also noticed an interface nsIDOMCanvasRenderingContext2D that allows
drawing an arbitrary nsIDOMWindow, but I don't know if it is FROZEN and
how I can construct an instance of this interface. Has anybody faced
similiar problems, either in Java or C/C++?
Thanks in advance,
Artem
_______________________________________________
dev-embedding mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-embedding