I write a simple program to print a image in JSF....
I have one image (sampleImage.png).. Already i connected my pc to printer....
Manually i open the image and
You could send this to the browser
window.print();
It is up to the browser to decide what to do.
To print specific portions of the page, consider a print stylesheet. Using the media attribute allows you to make a certain file print only styles.
media