• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
  • Bear Bibeault
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Piet Souris
  • salvin francis
  • Stephan van Hulst
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Jj Roberts

Rezize image when printing, what to do ?

 
Ranch Hand
Posts: 359
  • 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
 
author
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: 359
  • 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 ?
 
Ranch Hand
Posts: 15304
6
Mac OS X IntelliJ IDE Chrome
  • 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: 359
  • 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 ....
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic