Hi,
In a page I have two links:
<%= link_to(image_tag("print.png",{"alt" =>
"print", "border" => "0"}),
    {:controller => "bills", :action => "print"},
    {:target => "_blank"}) %>
<%= link_to(image_tag("preview.png",{"alt" =>
"preview", "border" => "0"}),
    {:controller => "bills", :action => "preview"}, 
    {:target => "_blank"}) %>
The first one call the controller''s action that sends the job to the
network printer. There I''ve choose to render a layout were a body
onload js function resize the page.
The second one call the controller''s action charged to show a pdf
(xpdf is resposable to handle the pdf within Firefox) preview of the
print in this way:
@response.headers["Content-Type"] = "application/pdf"
render_text gen_pdf(data)
where the last instruction of gen_pdf(data) is:
pdf.Output()
the point is, when I call the print page all the pages I''ll open will
be risized like the print one.
I can''t figure out witch way to resize the pdf page cause it''s
not
using a layout!
Anyone has suggestions? I know this is not a strictly rails related
question, but I''m having this truble within it, so I hope someone will
help me to clarify my lack about this.
Thanks,
Enrico
-- 
"The only thing necessary for the triumph of evil
is for good men to do nothing"
 Edmund Burke