Peter Flynn
2006-09-07 21:38:44 UTC
I wonder if any of you have used html2ps, gnome-web-photo, or any
other means of converting HTML pages to images which could thereafter
be included in a PDF file. I have several hundred such pages which
ought to be converted. By and large they are pretty simple and do not
themselves contain images. (The pages are mostly query screens
and the reports which are produced by running the queries.) I am
interested in alternatives to firing up a graphics editor and scraping
each screen by hand, which given the number of pages will be a very
tedious undertaking. The documentation is currently being
produced on a Linux machine and I would like to keep work on it
there if possible, hence excursions to Windows programs are not
desirable although not completely out of the question. The ideal
would be a GUI-free command-line program.
Netscape used to have a commandline option something along the lines ofother means of converting HTML pages to images which could thereafter
be included in a PDF file. I have several hundred such pages which
ought to be converted. By and large they are pretty simple and do not
themselves contain images. (The pages are mostly query screens
and the reports which are produced by running the queries.) I am
interested in alternatives to firing up a graphics editor and scraping
each screen by hand, which given the number of pages will be a very
tedious undertaking. The documentation is currently being
produced on a Linux machine and I would like to keep work on it
there if possible, hence excursions to Windows programs are not
desirable although not completely out of the question. The ideal
would be a GUI-free command-line program.
$ netscape -print -exit <uri>
which when run *without* a GUI present would print the page to a PS
file and then exit. It was then trivial to snip off pages >1 and turn
the result into an image format.
But I have no idea if this technique still exists. Firefox would do
well to implement it if it's been dropped...
///Peter
--
Crossposted additionally to comp.infosystems.www.browsers.misc and
netscape.public.mozilla.browser
Crossposted additionally to comp.infosystems.www.browsers.misc and
netscape.public.mozilla.browser