This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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: 339

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: 339
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: 15286
    
    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 - A Test Data Generation Platform
Frank Jacobsen
Ranch Hand

Joined: May 17, 2002
Posts: 339
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 ....
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Rezize image when printing, what to do ?
 
Similar Threads
Image loading complete?
Getting an image from an emulator?
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