I prefer to make the job client-side if is possible. My idea is to intercept the window.print command (where the layout is correct through the css print) and not to send it to the printer but to send it in some way to the constructor of this library http://code.google.com/p/jspdf/
Am I completely wrong? Or may it works? Kind regards Massimo On 9 Nov, 13:19, "Jonathan Vanherpe (T & T NV)" <jonat...@tnt.be> wrote: > I'd look into something server-side if I was > you:http://code.google.com/p/wkhtmltopdf/is a good option, if you have a > way of running custom binaries on your server. > > Jonathan > > > > m.ugues wrote: > > Hallo all. > > I found this library (http://code.google.com/p/jspdf/) as someone > > suggested to create custom PDF files from javascript. > > > What I need now is a more difficult task. > > I need to create a PDF file using the css media="print". > > > So I would like to generate a PDF file equal to what is sent to the > > printer. > > > Any idea? > > > Kind regards > > > Massimo > > -- > Jonathan Vanherpe - Tallieu & Tallieu NV - jonat...@tnt.be