[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1952
  • Last Modified:

How to print TIF images through PCL

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
kerzner
Asked:
kerzner
  • 3
  • 2
1 Solution
 
hdhondtCommented:
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
 
kerznerAuthor Commented:
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
 
hdhondtCommented:
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
 
kerznerAuthor Commented:
I used something else (application printing), but this was a good discussion.
0
 
hdhondtCommented:
Thanks for the points anyway
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now