Re: [elinks-users] Newbie: Using elinks to convert html table to text file for printing on dot matrix printer
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 [email protected] http://linuxfromscratch.org/mailman/listinfo/elinks-users
[elinks-users] Newbie: Using elinks to convert html table to text file for printing on dot matrix printer
Hi All, I have just discovered elinks in my hunt for a Html->PrettyText solution. A little background of my use-case: My java application is formatting some data as html tables (basically simple reports) and sending them to my users' browser. This is shown nicely in their graphical browsers (firefox etc) but when someone wishes to print it on text only (dot matrix) printer, the printer sees the data as a graphical image and proceeds to print it very slowly. eg: character C would be printed in 3-4 passes by the printer - making it very very slow I am trying to pass this html string via a converter which will convert it to text, keeping intact the column alignment for tables (i.e. keeping intact the vertical alignment of cell data across the rows - by adding extra spaces or wrapping text as required). - 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? I am using java code running in tomcat on linux. Thanks in advance, S.Singh ___ elinks-users mailing list [email protected] http://linuxfromscratch.org/mailman/listinfo/elinks-users
