I want to be able to fetch a web page, save it in a file, render it in a browser and then print the rendered version.but your code example only passes a URL to the browser, not the file you've got with LWP::Simple. So no modification is applied. The browser gets the page directly from the source, no printing code in it. Maybe you want to modify the retrieved webpage, store it to a file and point the browser to that file.I can do the first 3 bits (LWP::Simple etc) but can't think how to get the rendered page to go straight to the printer.
Another possibility is to set up a local proxy (see HTTP::Proxy) that retrieves the page on behalf of your browser, modifies it on the fly and serves it to your browser. You'd have to tell your browser to use that proxy.
--shmem
_($_=" "x(1<<5)."?\n".q·/)Oo. G°\ /
/\_¯/(q /
---------------------------- \__(m.====·.(_("always off the crowd"))."·
");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}
In reply to Re^4: Printing from a browser
by shmem
in thread Printing from a browser
by PerliKnight
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |