wood burning stoves 2.0*
The moose likes HTML, CSS and JavaScript and the fly likes Rezize image when printing, what to do ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Rezize image when printing, what to do ?" Watch "Rezize image when printing, what to do ?" New topic
Author

Rezize image when printing, what to do ?

Frank Jacobsen
Ranch Hand

Joined: May 17, 2002
Posts: 348

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

Joined: Nov 08, 2001
Posts: 15376
    
    6
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

Joined: May 17, 2002
Posts: 348
But i have the possibility to do something in the servlet, but what can I do ?
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15299
    
    6

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.


GenRocket - Experts at Building Test Data
Frank Jacobsen
Ranch Hand

Joined: May 17, 2002
Posts: 348
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 ....
 
wood burning stoves
 
subject: Rezize image when printing, what to do ?
 
Similar Threads
Image loading complete?
My littel print function works in IE but not Mozilla any ideas ?
Open PDF file by AJAX holding the button
How to print a image file into the printer
Getting an image from an emulator?