Scale a Page? Do you mean limit the amount that will be printed?
"JavaRanch, where the deer and the Certified play" - David O'Meara
Manjula Rao
Greenhorn
Joined: Dec 13, 2000
Posts: 21
posted
0
No i do not mean limiting the area printed but to reduce the size of the fonts proportionately so that the whole web page is acomodated in one page. ofcourse by that i mean width wise well accomodated and not page wise. if the matter spans over multi pages then it will continue doing so. this i am able to do thru Graphics2D using Graphics2D g2d = (Graphics2D)g; //where g is a Graphics object. g2d.translate(50,50); g2d.scale(0.5f,0.5f); this scales the page to 50% of the actual size proportionately. Now the problem that i am having is that using Graphisc2D object scaling is possible but multi page printing is not getting possible. but if i use a Graphics object then multipage printing is perfect but the matter printed is huge and sometimes gets cut from the margines. if any suggestions regarding these problems, they r welcome. thanx Manjula