Solved

How to print TIF images through PCL

Posted on 2004-08-25
5
1,925 Views
Last Modified: 2013-12-15
Hello experts:

I am new to PCL programming. I want to print TIF Images from different trays with overlay.
I wrote a test file which can print some text in that test file through the tray I asked, but how can I print the image through different trays and how to ask the printer to print my files with the settings I defined in PCL scripts?  I am using HP LaserJet 9000 and PCL 5 and i am trying to do this through DOS command window and later I will try it in Java code.

Thanks

karen
0
Comment
Question by:kerzner
  • 3
  • 2
5 Comments
 
LVL 38

Accepted Solution

by:
Herman D'Hondt earned 100 total points
ID: 11899438
You need to convert the TIF data to PCL. In other words you need to know how to decode the TIF format (and there are many different possibilities: PC or Mac byte order, RGC or CMYK, various forms of compression, etc) and you need to know how to send a PCL raster image to the printer. As you already know how to change trays etc, you probably have a PCL command reference manual. If you don't have one, go to

http://search.hp.com/gwuseng/redirect.html?type=REG&qt=PCL+5+Printer+LanguageTechnical++Reference+Manual&url=http%3A//h20000.www2.hp.com/bc/docs/support/SupportManual/bpl13210/bpl13210.pdf&pos=1

Look up the Raster Graphics section in that manual for details. For info on TIFF format you can start with

partners.adobe.com/asn/developer/pdfs/tn/TIFF6.pdf

If the HP 9000 supports direct TIFF printing (I don't think it does, but I'm not sure) you can use PJL commands to set the default tray and then send the TIFF file.
0
 
LVL 1

Author Comment

by:kerzner
ID: 11903207
Hello hdhondt,

If i don't print from DOS, I don't need to convert TIF into PCL format, do I? I am wondering if I use java or VB to print the TIF through the PCL 5e driver, and insert PCL script between the print jobs, is that possible?
Thanks
0
 
LVL 38

Expert Comment

by:Herman D'Hondt
ID: 11911109
No, you *always* need to convert from TIFF to PCL (except for those printers that support TIFF directly). However, with Windows you can open the TIFF file into any image viewer and print from that. In that case the driver will do the conversion for you. If you use Java or VB you still need to do the conversion, although there is a possibility that someone has a set of functions that will do the job. Expect to pay for them though - if you can find them.
0
 
LVL 1

Author Comment

by:kerzner
ID: 12040223
I used something else (application printing), but this was a good discussion.
0
 
LVL 38

Expert Comment

by:Herman D'Hondt
ID: 12042482
Thanks for the points anyway
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

If you use a Brother DCP 130C or similar Brother printer, at some point you might encounter the following problem: after you change the ink cartridge, the printer displays an "ink empty" message. Sometimes you just need to follow the instructions…
Printers have changed substantially in the last 30 or so years, not just in technical capabilities but in cost and usage as well.  Printers were originally used for interfacing with the operator, not necessarily for printing copy or pictures. In …
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now