Hi!

I realize that this reply might come a wee bit late, but I haven't
really been looking at the mailinglist for some time. If you have found
another solution or don't need it anymore---well, the archive might
still be happy about it. :o)

* Saurabh Singh on Tue, Dec 06, 2011 at 04:53:34PM +0530:
>    - Can I use elinks in a way where I give it a 'string' which is fully
>    formed html page and get the text output which I can then send to the
>    user's browser for fast printing?

Basically you want to use the '-dump' command-line switch, which tells
Elinks to format the page and just dump it as text onto the standard
output. I'm using this for much the same reasons as you, to feed it to
my trusted dot-matrix printer.

If your HTML is a text file, then the incantation looks like this:
% elinks -dump $filename

This works just as well using a pipeline:
% some_command | elinks -dump

There are additional options that control how wide the output should be,
whether to enumerate links and so on. They are listed in the output of
`elinks -help`.


Cheers,
    s//un

-- 
Ein physikalischer Versuch der knallt
ist allemal mehr wert als ein stiller.
        -- Georg Christoph Lichtenberg
_______________________________________________
elinks-users mailing list
elinks-users@linuxfromscratch.org
http://linuxfromscratch.org/mailman/listinfo/elinks-users

Reply via email to