Hi, Right now I''m generating a PDF that''s is shown inside the browser, the user''s printer dialog is handled by that program (xpdf or Acrobat :\ ). @response.headers["Content-Type"] = "application/pdf" render_text thePdf This step sometimes is useless in my intranet application so I was looking for a way to avoid it. I''m wondering if is it possible (and if is it a good way) to print my (PDF) data to a CUPS server. I''m assuming the client/s to print on a single printer. What do you think about my madness? ;-) Thanks for any suggestion, Enrico -- "The only thing necessary for the triumph of evil is for good men to do nothing" Edmund Burke
If you have a cups client on the server you can do File.popen(''/usr/bin/lpr'').write(thePdf). Enrico Teotti wrote:> Hi, > Right now I''m generating a PDF that''s is shown inside the browser, the > user''s printer dialog is handled by that program (xpdf or Acrobat :\ > ). > @response.headers["Content-Type"] = "application/pdf" > render_text thePdf > This step sometimes is useless in my intranet application so I was > looking for a way to avoid it. > I''m wondering if is it possible (and if is it a good way) to print my > (PDF) data to a CUPS server. I''m assuming the client/s to print on a > single printer. > What do you think about my madness? ;-) > Thanks for any suggestion, > Enrico >