Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PCL Image Printing Help

Status
Not open for further replies.

wcwolff

Technical User
Aug 3, 2004
13
US
I am rewriting printing code(DOS based unfortunately)for a program that prints directly to an HP LaserJet using PCL codes and does not use drivers. The code currently calls a stored macro of a logo in the printer and then prints the remaining data to the page.

I want to send the logo image (from a .jpg or .bmp file) to the printer at a specific page location via code instead of calling a macro but I am not familiar with how to do this from a coding perspective. I am familiar with PCL codes for page, job, font etc.

Any help would be appreciated.
 
Go to my website and download a demo of my MKPCL program that will convert a .jpg, .bmp, or .pcx file to PCL format.

It is usually tidier to implement these things as a macro, but read the manual for some ideas. As the program uses a command line interface, you can generate the PCL conversion from a batch file or whatever.

The use of a macro does not preclude you from giving specific X,Y coordinates. A macro implemented as an overlay does require, however, that the positioning code be embedded in the macro file.


Jim Asman
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top