Hello All,

I'll try this question again, a little more focused this time:

I am trying to find a way to use Gecko to generate an image of a web page.
>From what I gather, this would entail having an nsWebBrowser render to a
container other than a window. Many of the interfaces available would not
need to be implemented. (I even question if nsIWebBrowserChrome needs to be
implemented, though the Embedding API seems to require it.) My questions
are:

(1) Is it possible, or am I just searching for unsupportable functionality?
Is there enough information to do this in a platform independent way?
(Actually, I'm targetting Linux, but as my Linux box is out of service, I
need to try it on a Win2K box. I don't want the solution to be restricted to
Win2K, but I don't mind if it's restricted to Linux. A cross-platform
solution would probably be the best way to. But perhaps the nature of the
problem implies platform-specificity. Any hints?)

(2) If it is possible, what is/are the likely point(s) of interception to
parlay the layout into an image?

(3) Is it possible to correlate a pixel position in the generated image with
the underlying window real-esate of the DOM? For example, could I get the
pixel coordinates of the area occupied by a table?

Thanks for any input you can provide.

Raj



Reply via email to