I've been asked to create a web based application that, on several parts, needs to offer a 'print' button to the user and, once clicked, send a document to the printer.
However, the information printed should be as reliable as possible on format - ideally, it should be almost identical on any printer/computer/os and not contain any header/footer inserted by the browser (like the url info Internet Explorer is configured to print by default).
I've been thinking about creating a PDF file in the server and do some research on whether I can create a hidden div/object/something to load that PDF file and then use javascript to make it receive the 'print' instruction once loaded.
Anyway, I thought about asking you guys for ideas. How would you do this? Do you know of a better way?
Thanks in advance for any comments!
Francisco