Output to Printer


#1

It was very surprising to me to find out that there is no current,
GPL’ed “ruby-” package designed for outputting HTML / CSS pages to a
printer. For reasons of principle, I won’t use any add on modules for
ruby that are not GPL’ed. Does anyone know of a package currently
under development that is at least reasonably close to such support?

Arthur


#2

I’m not sure if I understand completely, but I would just render a
‘printer_friendly’ layout.

And you do know that Rails itself is not GPL, right?


#3

I found THE solution for this problem and it is extremely simple. In
the line:
<%= stylesheet_link_tag ‘scaffold’, ‘TCO’, :media => :all %>
all that was required was to add the part:
, :media => all
to the existing line. This gives me a print out that matches the
screen.

Arthur


#4

eengnerd wrote:

I found THE solution for this problem and it is extremely simple. In
the line:
<%= stylesheet_link_tag ‘scaffold’, ‘TCO’, :media => :all %>
all that was required was to add the part:
, :media => all
to the existing line. This gives me a print out that matches the
screen.

Arthur

generally is not a good practice to use the same CSS for screen and for
printer.

For printer is better to use a CSS that hide header , footer and menu
and flat down colors to simple grayscale for better laser printing