i would like to have a function where i click on a button and it will printout the page that currently display and it fit to A4 size, the questions is howto i make the whole page fit to A4 size? also would it be good if i generate a pdf file first then only print ? pdf file allow to capture picture as well ?
can someone suggest some ideas for my scenario ? any sample i can reference on this ?
thank you very much for guidance
posted 10 years ago
I'd suggest using a CSS print stylesheet. Just Google "css print" and you'll get a lot of links explaining how this works.