• Post Reply Bookmark Topic Watch Topic
  • New Topic

Printing a Tiff Image in Java  RSS feed

 
Adalberto Toledo
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I'm new here...

I'm trying to print a Tiff image but after the print function is called, it doesn't do anything, this is my code:




And this is the output console:

Printing to Win32 Printer : \\VENTAS-PC\HP LaserJet 100 color MFP M175 PCL6
name = 1.tif
Is file? true
length:3131904


Can you explain me what do I have to do?
I'm new in Java so, please explain me step by step... Sorry
 
Komal Arora
Ranch Hand
Posts: 91
Eclipse IDE Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I dont know much about handling images, but as far as i know you get problems using tiff files. Try refering to the java advance imaging API. You may get some help.
 
Bill Clar
Ranch Hand
Posts: 163
Eclipse IDE Java Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Adalberto Toledo wrote:
I'm new in Java so, please explain me step by step... Sorry


You're new to Java and you're tackling TIF image printing?

I utilize the java.awt.print.Printable interface. I load the image into memory and then render it to the graphics object. This may work for you.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!