Re: automate printing of html-formatted pages?
On Sat, 3 Sep 2005, Matt Price wrote:
> > images makes simple "cat $html" not work either, otherwise,
> > cat $html | lpr -Ppostscriptprinter -
> >
> wouldn't this just print the text that is contained in an html file (as
> opposed to a rendered/formatted html page?
good point, probably ...
> > how about:
> >
> > while ( have-html-pages ) {
> > konqueror option-to-display-to-stdout http://any-web-page \
> > | lpr -Ppostscript -
> > }
> >
> > ie .. let mozilla/konqueror/galeon do your rendering locally
> > but to dump to STDOUT instead
>
> I like the idea of having a real browser do the hard work of managing
> the display -- but I'm not really quite sure how an
> "option-to-display-to-stdout" would work. I don't see any such option
> in the man pages for konqueror or firefox,
the option to be found is the trick and/or modify the source
to display to stdout instead of $DISPLAY:$xterm ( whatever its called )
> and in any case I'm not
> confident that this would result in a postscript file suitable for
> piping to the printer... Am I missing the boat here?
we're just trying to have the script "hit the print button" automatically
for you/us
-- tk/tcl and/or expect will do the trick ( interactive scripts )
if the "option-to-display-to-stdout" doesn't exist for the browser
c ya
alvin
Reply to: