Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Rezize image when printing, what to do ?

 
Frank Jacobsen
Ranch Hand
Posts: 358
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I get the data to a image from a backend system from the mainframe system, and displays this on a html page.

My problem is, when i print this image, how do i rezise it to fit into the paper on a printer ?.

I have tried to resize it on the funtion, but nothing Seems to work …

Any good ide´as out there somewhere ?





Frank
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you are just returning the image from the server and nothing else in the pop up window, there is not much you can do about it.

Eric
 
Frank Jacobsen
Ranch Hand
Posts: 358
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
But i have the possibility to do something in the servlet, but what can I do ?
 
Gregg Bolinger
GenRocket Founder
Ranch Hand
Posts: 15302
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Frank Jacobsen wrote:But i have the possibility to do something in the servlet, but what can I do ?


Resize it on the server then. And stream back the resized image.
 
Frank Jacobsen
Ranch Hand
Posts: 358
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey i think i get the idea

http://greatwebguy.com/programming/java/java-image-resizer-servlet/

There is a possibility in the AWT package, to do this in a servlet i dident know.....



Thanks ....
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic