LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Printing from Links & Lynx (https://www.linuxquestions.org/questions/linux-software-2/printing-from-links-and-lynx-541758/)

JMJ_coder 03-29-2007 06:59 PM

Printing from Links & Lynx
 
Hello,

Can someone explain how I can enable printing from the Links browser and the Lynx browser?

bigrigdriver 03-29-2007 08:46 PM

Point your browser at this file:
file:///usr/share/doc/packages/lynx/lynx_help/Lynx_users_guide.html

At least, that's where to find it on my system. It might be in a different location on yours. At any rate, it gives you an idea of what to look for. There is a section on printing.

JMJ_coder 03-31-2007 07:56 PM

Hello,

O.K. I got Lynx figured out. How about Links? I tried using 'p' as well, but it doesn't work.

JMJ_coder 04-02-2007 02:19 PM

Hello,

Please, any advice on how to print in Links.

dive 04-02-2007 03:55 PM

I had a look into this with elinks which I think is pretty much identical to links. I didn't find any option to print at all.

All I can suggest is to use the -dump switch and pipe to lpr or lp. I haven't tested at all but try something like:

links -dump -no-references http://www/domain.com/page.html | lp


*edit:

I've just looked at keybindings and realize that I have a bind set up to print.

In Setup - Document - URI passing I have a 'print' option like so 'printhtml %c'
printhtml is basically a script (in my PATH) that does as above:

Code:

#!/bin/bash
elinks -no-references -dump "$@" | lp 2>/dev/null 1>&2

Then put in the keybind options the key combo to use for URI passing.
You can have more than one URI passing options setup - I have one for print and one for print with references.

JMJ_coder 04-03-2007 07:18 PM

Hello,

Quote:

Originally Posted by dive
I had a look into this with elinks which I think is pretty much identical to links. I didn't find any option to print at all.

All I can suggest is to use the -dump switch and pipe to lpr or lp. I haven't tested at all but try something like:

links -dump -no-references http://www/domain.com/page.html | lp


*edit:

I've just looked at keybindings and realize that I have a bind set up to print.

In Setup - Document - URI passing I have a 'print' option like so 'printhtml %c'
printhtml is basically a script (in my PATH) that does as above:

Code:

#!/bin/bash
elinks -no-references -dump "$@" | lp 2>/dev/null 1>&2

Then put in the keybind options the key combo to use for URI passing.
You can have more than one URI passing options setup - I have one for print and one for print with references.

I checked and that is not something that Links provides. It doesn't have the Setup --> Document. It could be that the keybinding could be done anyway, but I don't know how to do that. Thanks for your help, though.

dive 04-03-2007 08:13 PM

Have a look at using elinks. It is a bit more advanced than plain links.

JMJ_coder 04-04-2007 06:37 PM

Hello,

Quote:

Originally Posted by dive
Have a look at using elinks. It is a bit more advanced than plain links.

I am using Links-2 which among its many improvements over the original links, is the one I like the most - a graphical mode. If I want to use plain text mode, I'll use lynx.


All times are GMT -5. The time now is 11:21 AM.