2010. május 5. 9:46 napon Johannes Meixner <jsmeix@suse.de> írta:
Hello,
On May 4 17:11 Istvan Gabor wrote (shortened):
Several web sites offer their pages for viewing them in the browser and for printing. ... I would like to save the print version as an html page
I am really not a web content expert but I think that nowadays the layout of the plain HTML (i.e. how the plain HTML is shown on the screen or formatted for printing) is often defined via two different CSS style sheets for viewing and printing so that saving only the plain HTML may leave out what defines the layout.
Furthermore saving only the plain HTML will leave out all images.
If you like to save what you see when viewing and printing it, I think it is better to let the browser save it as PostScript or preferably as PDF file.
Of course if you need only the actual plain information what is in the HTML, you can save the plain HTML.
Alternatively you may try out a web downloader like wget to download the plain HTML together with all the files that are necessary to properly display a given HTML page e.g. via "wget ... --page-requisites", see "man wget": -------------------------------------------------------------- Actually, to download a single page and all its requisites (even if they exist on separate websites), and make sure the lot displays properly locally, this author likes to use a few options in addition to -p: wget -E -H -k -K -p http:/// --------------------------------------------------------------
But I have no idea how to tell wget to download the version for printing of a html page - unless it has an explicite URL.
Bottom line: Your simple question "save a html page" leads to a more and more complicated answer which depends on what you actually mean with your question.
Arun, Johannes, thank you for your answers. What I though was that even in the second example I gave the web-page sent to the printer is the same plain html stuff as in the first example except of some command/script makes the browser print it directly instead of open it in a window. I thought that I could apply some hack or trick so that the given page - instead of sent to the printer command - would be opened in a new window as in the first example. Then I can save that window as html. I know wget but it would be to difficult to tell wget the exact page I want to download if it is possible at all. As for printing to pdf/ps, I do it sometimes but it is very tedious. Opera web browser's print layout is very ugly, not really usable. In firefox 3 and seamonkey 2 it is a pain to print to file as they can not remember user's settings like headers/footers, the last directory used, it is not possible to select a file in save window and rename it. In firefox 2 I could direct print job to kprinter easily (in KDE 3.5); it was the best solution so far, though still not as straightforward as saving as html page. Once more, thank you for your help. Istvan -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org