LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 06-17-2010, 01:26 PM   #1
bkorb
GNU Contributor
 
Registered: Sep 2006
Location: Sta. Cruz, CA
Distribution: openSUSE
Posts: 62

Rep: Reputation: 17
How can I print a web page?


Hi, I have a really wide monitor. The web site queries the width of my monitor and not the width of my browser window. Based on that, I get sent a page with lines 500 characters long. (More or less, I didn't count.) So, when I want to print it, the printer software gives me two choices: the left side of the page only, rendering the text uselessly incomplete, or I can have the font reduced so that the 500 characters fit on a single line. I have trouble reading that. These choices don't seem to indicate particularly clear thinking on the usability side of things. Is there a way around this, or should I x-clip everything and hand edit it into a doc I can print? That is not really appealing, either.
 
Old 06-17-2010, 01:31 PM   #2
arizonagroovejet
Senior Member
 
Registered: Jun 2005
Location: England
Distribution: openSUSE, Fedora, CentOS
Posts: 1,094

Rep: Reputation: 198Reputation: 198
Sounds to me like the website to which you refer is badly broken.

If it's detecting the width of your monitor it's doing it with Javascript. You could try disabling Javascript in your browser then visit the site and see what it looks like.
 
Old 06-17-2010, 04:55 PM   #3
bkorb
GNU Contributor
 
Registered: Sep 2006
Location: Sta. Cruz, CA
Distribution: openSUSE
Posts: 62

Original Poster
Rep: Reputation: 17
Quote:
website to which you refer is badly broken.
I surely won't argue that one. Were this the first time, I'd just ignore it. But since this isn't the first time, finding and knowing a workable response would be Really Nice. For printing problems on Wiki pages, for example, just switching from Firefox to Konqueror solves the problem (Firefox folks promise to fix it RSN). That didn't work here.

I did x-clip and paste the page into OpenOffice. It worked more easily than I had feared. Based on the URI, I'm sure it was javascript running amok:
http://www.codeguru.com/java/print.p...-Beginners.htm

The preferred solution would be to tell the printing process to wrap lines instead of either trimming them or making the font size unreadably small.

Thank you for your suggestion!
 
Old 06-17-2010, 05:22 PM   #4
arizonagroovejet
Senior Member
 
Registered: Jun 2005
Location: England
Distribution: openSUSE, Fedora, CentOS
Posts: 1,094

Rep: Reputation: 198Reputation: 198
Hmmm. So you get this problem on more than one website? In which case, what evidence do you have to support your statement that "The web site queries the width of my monitor and not the width of my browser window."? Because I suspect that's not happening at all. The codeguru page you refer to renders the same for me whether I have Javascript enabled or not.

It sounds like your actual problem is simply that some webpages don't print nicely. Webpages are designed to viewed in a web browser, not on paper. Some sites include a stylesheet specifically for use when printing which alters the content of the page to make it look good on paper. Look at this page for example http://www.alistapart.com/articles/goingtoprint/ If you ask Firefox to show you a print preview of it then you'll see that in the printed version all the graphics are removed and the layout is slightly different. That's because they creator of the page has taken the time to produce a stylesheet for use when printing. Also, unlike the codeguru page where they've done all the layout using tables (which certainly isn't going to help a web browser in producing a nice printed version), the alistapart page is nicely constructed.
 
Old 06-17-2010, 05:33 PM   #5
bkorb
GNU Contributor
 
Registered: Sep 2006
Location: Sta. Cruz, CA
Distribution: openSUSE
Posts: 62

Original Poster
Rep: Reputation: 17
Well, actually, I got that link by requesting a printer friendly version and printed it. Except that I only got the first half of the longer lines. Some time back, I told my system to stop adjusting font sizes to get things to fit. I guess if the web author insists on using tables for layout and tables for layout are broken, then my clip, paste and print solution is the right one. Too bad. Thanks for the google
 
Old 06-21-2010, 09:32 AM   #6
Tomazaz
LQ Newbie
 
Registered: May 2006
Posts: 4

Rep: Reputation: 4
Quote:
Originally Posted by bkorb View Post
Hi, I have a really wide monitor. The web site queries the width of my monitor and not the width of my browser window. Based on that...
Try to convert web page to pdf using http://www.web2pdfconvert.com and then print PDF from Acrobat reader.
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
executing linux commands from web page and outputing it back to the web page ashes_sheldon Programming 9 02-28-2015 12:07 AM
script/app to automatically print web page to physical printer when updated cyberhus Programming 10 08-17-2010 05:08 AM
CUPS, option to print self-test page and clean print heads greyed out? BallsOfSteel Linux - Software 1 08-13-2008 03:22 PM
HP PS7150: text doesn't print in OOO and Abiword!, but I can print test page & w MzFF gabba Mandriva 6 10-31-2005 11:10 AM
Print web page to pdf under Gnome chocloman Slackware 2 04-28-2005 06:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 11:51 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration