Need html print engine

Need html print engine

Post by Christopher Brow » Sat, 09 May 1998 04:00:00




>I need to take html pages and throw these at the printer without having to
>fire up netscape each time. Is there a filter/utility to render html
>and print?

This sounds like an appropriate task for a Jade/DSSSL-based filter that
would produce TeX output.

Mind you, this turns into a moderately complex set of filters:

Step 1: HTML via jadetex --> .tex
jadetex produces a .tex output file, using an HTML DTD as well as DSSSL
``rendering code.''

Step 2: TeX that --> .dvi
TeX uses the .tex file, as well as a format file to handle the Jadetex
macros...

Step 3: dvips --> Postscript
Requiring minimal "special configuration"

Step 4: ps --> whatever, using Ghostscript

Perhaps I should step back a step, and suggest that ``HTML-to-PS is
something that would be useful'' and not suggest too much about how it
ought to be implemented...

--
"On a normal ascii line, the only safe condition to detect is a 'BREAK'
- everything else having been assigned functions by Gnu EMACS."  (By
Tarl Neustaedter)

 
 
 

Need html print engine

Post by Clive Clomsbarro » Sat, 09 May 1998 04:00:00




> >I need to take html pages and throw these at the printer without having to
> >fire up netscape each time. Is there a filter/utility to render html
> >and print?
[...]
> Perhaps I should step back a step, and suggest that ``HTML-to-PS is
> something that would be useful'' and not suggest too much about how it
> ought to be implemented...

The lprMagic printing scheme uses something like:

lynx -force_html -dump filename.html

I don't have lynx installed so I haven't tried it.
Check those args; I might have it wrong.

 
 
 

Need html print engine

Post by Christopher B. Brow » Wed, 13 May 1998 04:00:00





>> >I need to take html pages and throw these at the printer without having to
>> >fire up netscape each time. Is there a filter/utility to render html
>> >and print?
>[...]
>> Perhaps I should step back a step, and suggest that ``HTML-to-PS is
>> something that would be useful'' and not suggest too much about how it
>> ought to be implemented...

>The lprMagic printing scheme uses something like:

>lynx -force_html -dump filename.html

>I don't have lynx installed so I haven't tried it.
>Check those args; I might have it wrong.

That has the unfortunate effect that you don't get a terribly "pretty" set
of output, merely "raw, slightly formatted text."

It would be rather nicer if <h1> text were rendered in a bold, large font,
<h2> in something somewhat smaller, if PNG/JPEG/GIF images would actually be
rendered as part of the document, and if you'd get reasonably attractive
output out of <table>s.

--
Those who do not understand Unix are condemned to reinvent it, poorly.  
-- Henry Spencer          <http://www.hex.net/~cbbrowne/lsf.html>

 
 
 

Need html print engine

Post by Ben Pfaf » Wed, 13 May 1998 04:00:00


   >The lprMagic printing scheme uses something like:
   >
   >lynx -force_html -dump filename.html
   >
   >I don't have lynx installed so I haven't tried it.
   >Check those args; I might have it wrong.

   That has the unfortunate effect that you don't get a terribly "pretty" set
   of output, merely "raw, slightly formatted text."

   It would be rather nicer if <h1> text were rendered in a bold, large font,
   <h2> in something somewhat smaller, if PNG/JPEG/GIF images would actually be
   rendered as part of the document, and if you'd get reasonably attractive
   output out of <table>s.

Why not use the html formatter for latex?  It seems like that would
produce nice-looking output, although I haven't tried it.  (I think
it's included with the tetex distribution).

 
 
 

Need html print engine

Post by Rob Fu » Sat, 16 May 1998 04:00:00






>>> >I need to take html pages and throw these at the printer without having to
>>> >fire up netscape each time. Is there a filter/utility to render html
>>> >and print?
>>[...]
>>> Perhaps I should step back a step, and suggest that ``HTML-to-PS is
>>> something that would be useful'' and not suggest too much about how it
>>> ought to be implemented...
[...]
>It would be rather nicer if <h1> text were rendered in a bold, large font,
><h2> in something somewhat smaller, if PNG/JPEG/GIF images would actually be
>rendered as part of the document, and if you'd get reasonably attractive
>output out of <table>s.

http://www.tdb.uu.se/~jan/html2ps.html

--



     -- Chris Mars, "Stuck in Rewind" |http://er4www.eng.ohio-state.edu/~funkr

 
 
 

Need html print engine

Post by Albert D. Cahal » Sat, 16 May 1998 04:00:00



Quote:> It would be rather nicer if <h1> text were rendered in a bold, large font,
> <h2> in something somewhat smaller, if PNG/JPEG/GIF images would actually
> be rendered as part of the document, and if you'd get reasonably attractive
> output out of <table>s.

Hack Netscape to produce PostScript on stdout. Raw bitmap support would
be good too, and perhaps much more important considering the types of
printers in common use.

netscape -print 2400x3000,raw-cymk32 http://foo.com/bar.html | lpr -Pcymk32
netscape -print 4800x6000,ps-k1 foo.html | lpr -PS
netscape -print 1600x1200,png-rgb48 baz.html > baz.png