Skip to main content

[JAVA2D] Printing multipage tiff file.

3 replies [Last post]
Anonymous

Hi

I wrote a small applet, that handles tiff files. It zooms, rotates and so
on. There is only one more feature I need and that is printing. So far I
manage to print individual pages by printing the image which is fine when
the tiff file contains a single page. But when is a multipage tiff file. I
end up sending multiple printjobs to the printer. Is there a better wat to
print multipage tiff files?

Thanks

Jorge

===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff JAVA2D-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".
[att1.html]

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
megamadhu
Offline
Joined: 2004-03-18

u can print multipage tiff image by using "Book".. add
book.append(this,pageformat,pages); where pages equal to ImageReader.getNumpages();

i hope it helps u .. if u still unable to do it .. let me know i will send a working example

j_acon
Offline
Joined: 2005-09-21

magemadhu

Won't you run out of memory when there are lots of pages inside the multipage tiff file? I am trying to do the same thing, but i also have a problem in image printing quality, the images that come out are totally unacceptable.

Phil Race

Probably the best and most straightforward thing to do is
scale the image to fit on a single page.

-phil.

Jorge wrote:
> Hi
>
> I wrote a small applet, that handles tiff files. It zooms, rotates and
> so on. There is only one more feature I need and that is printing. So
> far I manage to print individual pages by printing the image which is
> fine when the tiff file contains a single page. But when is a multipage
> tiff file. I end up sending multiple printjobs to the printer. Is there
> a better wat to print multipage tiff files?
>
> Thanks
>
> Jorge
>
>
>
> ===========================================================================
> To unsubscribe, send email to listserv@java.sun.com and include in the
> body of the message "signoff JAVA2D-INTEREST". For general help, send
> email to listserv@java.sun.com and include in the body of the message
> "help".

===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff JAVA2D-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".