[Gllug] Browser tricks

Simon Stewart sms at lateral.net
Wed Jul 31 12:59:59 UTC 2002


On Wed, Jul 31, 2002 at 02:47:26PM +0200, John Hearns wrote:
> On Wed, 2002-07-31 at 14:21, Simon Stewart wrote:
> > One of my users has just asked me if it's possible to automatically go
> > to a website and grab the rendered output as a PNG, GIF or JPEG. This
> > means that they just want to fire off a cron job (say) to collect the
> > rendered output of a web page without having to go to the site and
> > grab the window itself by hand.
> Oops - re-reading properly this time what you said,
> you want the rendered output of the page printed off.

:) Thanks for the ideas, though, John.
 
> Yeah, getting a simple HTML page and piping it to html2ps would be OK.
> But anything complicated with frames...
> Takes foot from mouth, but still says a search of CPAN is a good place
> to start.

Okay.

> Then again:
> 
> html2ps http://www.slashdot.org > slashdot.ps  just worked for me!
> The output is awful though - bit of a waste of time :-(

It's a good start, but not quite what I need. I _have_ to use the
rendering engine of whichever browser we want to use to view websites,
otherwise this exercise is pointless.

Hmmm... just having a gander at the embedding projects for
Mozilla. There appears to be a Java API (webclient) that presents the
rendering engine as a canvas. I wonder....

Cheers,

Simon

-- 
University politics are vicious precisely because the
stakes are so small.
- Henry Kissinger

-- 
Gllug mailing list  -  Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug




More information about the GLLUG mailing list